concat()
Sat Nov 05 2022 20:39:24 GMT+0000 (Coordinated Universal Time)
Saved by
@cruz
#javascript
public class CombineNames {
public static void main(String[] args) {
// Add your first names:
String firstName = "Cash";
String lastName = "Carti";
// What's the full name?
System.out.println(firstName.concat(" " + lastName));
}
}
content_copyCOPY
Comments