python add strings
var1 = "foo"
var2 = "bar"
var3 = var1 + var2
python add strings
var1 = "foo"
var2 = "bar"
var3 = var1 + var2
java concatenate strings
public class Concat {
String cat(String a, String b) {
a += b;
return a;
}
}
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");
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us