String str1 = "abc";
//字符串+ 是字符串的拼接
System.out.println(str1+"1234");
//字符串 和数字的互相转换
//数字->string
String tmp = 123+"";
//string->数字
// 参数要合适
int x = Integer.parseInt("123abc") ; //整数转换 int
System.out.println(x+5);
double y = Double.parseDouble("3.14");//浮点数的转化 double
System.out.println(y+5);
}
//字符串+ 是字符串的拼接
System.out.println(str1+"1234");
//字符串 和数字的互相转换
//数字->string
String tmp = 123+"";
//string->数字
// 参数要合适
int x = Integer.parseInt("123abc") ; //整数转换 int
System.out.println(x+5);
double y = Double.parseDouble("3.14");//浮点数的转化 double
System.out.println(y+5);
}