public class HelloWorld {
public static void main(String[] args) {
double m = 78.5;
//将基本类型转换为字符串
String str1 =Double.toString(m);
System.out.println("m 转换为String型后与整数20的求和结果为: "+(str1+20));
}
是的,相当于字符串拼接