System.out.println("两数之和为:"+sum);中“+”可以不写出来吗
public class HelloWorld{
public static void main(String[] args) {
int a=12;
int b=24;
int sum=a+b;
System.out.println("两数之和为:"+sum);
}
}
public class HelloWorld{
public static void main(String[] args) {
int a=12;
int b=24;
int sum=a+b;
System.out.println("两数之和为:"+sum);
}
}
2020-09-04
举报