Answers for "how to append string"

1

how add strings together

//Java
String firstName = "BarackObama";
String lastName = " Care";
//First way
System.out.println(firstName + lastName);
//Second way
String name = firstName + lastName;
System.out.println(name);
//Third way
System.out.println("BarackObama" + " Care");
Posted by: Guest on May-14-2020
0

how to append to a string in python

s1 = "New"
s2 = "Delhi"
space = " "
print(s1 + space + s2)
Posted by: Guest on August-02-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language