Question: Java pls!! Read four strings from input and call printLocation() to output as follows. Ex: If the input is Poughkeepsie Milwaukee Vassar Alverno, then the

Java pls!!

Read four strings from input and call printLocation() to output as follows.

Ex: If the input is Poughkeepsie Milwaukee Vassar Alverno, then the output is:

Poughkeepsie is the location of Vassar College. Milwaukee is the location of Alverno College.\

import java.util.Scanner;

public class Location {

public static void printLocation(String var1, String var2) { System.out.println(var1 + " is the location of " + var2 + " College."); }

public static void main (String [] args) {

/* Your code goes here */

} }

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!