Menu
×
×
Correct!
Exercise:Use the correct method to concatenate two strings:
String firstName = "John ";
String lastName = "Doe";
System.out.println(firstName.@(6)(lastName));
String firstName = "John ";
String lastName = "Doe";
System.out.println(firstName.concat(lastName));
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 59 exercises.
Are you sure you want to continue?