Question: Java Exercise Write a program that asks the user to enter a number of cities and store them in an array called cities. Then ask
Java Exercise
Write a program that asks the user to enter a number of cities and store them in an array called cities. Then ask the user to enter a letter. Print all the cities that begin with that letter first, and then print all the cities that have the letter in their name (note you need to deal with case upper and lower case). Test this with two outputs where you have changed the array elements and create arrays of different lengths.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
