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
Get step-by-step solutions from verified subject matter experts
