Appending strings and ints

Report a typo

Select all lines that print 222.

System.out.println(1 + 1 + "2" + 2);
System.out.println(2 + 2 + "2");
System.out.println("2" + 2 + 2);
System.out.println("2" + 2 + 1 + 1);
 
Select one or more options from the list
___

Create a free account to access the full topic