Java

var name = "John"; var lastName = "Smith"; var text = "My name is: " + name + " " + lastName; var text2 = String.format("My names is: %s %s", name, lastName); var otherText = "My name is: " + name.substring(2);