Menu
×
×
Correct!
Exercise:Use the correct method to concatenate two strings:
String firstName = "John ";
String lastName = "Doe";
System.out.println(firstName.concat(lastName));
Not CorrectClick here to try again. Correct!Next ❯String firstName = "John "; String lastName = "Doe"; System.out.println(firstName.(lastName)); |