Question: Why am I getting this x on line 3 & 4. I can't figure it out? x 40 11 12 13 = = D *module-info.java

Why am I getting this x on line 3 & 4. I can't figure it out?

Why am I getting this x on line 3 & 4. I

x 40 11 12 13 = = D *module-info.java X 1 2 import java.util.*; 3 public class Engine {l public static void main(String args[]) { Scanner sc = new Scanner(System.in); String locomotivel, locomotive2, locomotive3, locomotive4, locomotives, common; System.out.print("locomotivel "); locomotivel = sc.nextLine(); System.out.print("locomotive2 = "); 10 locomotive2 = sc.nextLine(); System.out.print("locomotive3 = "); locomotive3 = sc.nextLine(); System.out.print("locomotive4 "); 14 locomotive4 = sc.nextLine(); System.out.print("locomotive5 "); 16 locomotive5 = sc.nextLine(); System.out.print("common common = sc.nextLine(); ArrayList engine = new ArrayList(); engine.add(locomotivel); engine.add(locomotive2); engine.add(locomotive3); engine.add(locomotive4); engine.add(locomotive5); engine.add(common); System.out.println("The values are :"); for(String i : engine) { 28 System.out.println(i); 29 30 31 "); 17 18 19 20 21 22 23 24 25 26 27 } }

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!