Question: Read four strings from input and call printCollegeCity ( ) twice: once with the first and third inputs as arguments, and again with the second

Read four strings from input and call printCollegeCity() twice: once with the first and third inputs as arguments, and again with the second and fourth inputs as arguments.
Ex: If the input is Waterloo Williamstown Allen Williams, then the output is:
Waterloo is the location of Allen College. Williamstown is the location of Williams College.
In Java

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 Programming Questions!