Question: Write a Java program, using (ArrayList) and input the below data. Then loop through the values and print them all. Using the values: locomotive 1=steam

Write a Java program, using (ArrayList) and input the below data. Then loop through the values and print them all. Using the values: locomotive 1=steam locomotive2=diesel locomotive3=electric locomotive4=coall locomotive5=wood common=combined engines
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
