java每日一练--day2
作者:互联网
拼接字符串
public class Demo {
public static void main(String[] args) {
String str1=5+"5";
String str2=5+5+"5"+5+5;
String str3='5'+5+"zzt";
String str4="zzt"+'5'+5;
System.out.println(str1);
System.out.println(str2);
System.out.println(str3);
System.out.println(str4);
}
}
标签:一练,String,--,str2,day2,System,str3,println,out 来源: https://www.cnblogs.com/2246781190zyc/p/16367384.html