Question: Write a Java application that initializes an array of Strings with the following strings: Hot Peppers Onions Milk Eggs Rice The program must then use

Write a Java application that initializes an array of Strings with the following strings:

"Hot Peppers" "Onions" "Milk" "Eggs" "Rice"

The program must then use a loop to get the first character of each string in the array and make a new word with those letters. The program finally prints the new word. (You must create two classes).

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!