Question: Set up a JAVA program with a main method and name it: ArrayExample. Declare a string array of size 1 0 and name it: colors.
Set up a JAVA program with a main method and name it: ArrayExample.
Declare a string array of size and name it: colors.
Prompt the User for how many colors they want to enter.
Use an IFELSE structure to error check how many so it doesn't exceed the size of the array.
Use a WHILE loop to prompt the User for the colors.
Use a FOR loop to print out the colors.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
