其他分享
首页 > 其他分享> > Day012

Day012

作者:互联网

Base

Demo07

public class Demo07 {
public static void main(String[] args) {
int a = 10;
int b = 20;

a+=b; // a = a+b
a-=b; // a = a-b

System.out.println(a);


//字符串连接符 + , String
System.out.println(""+a+b);

System.out.println(a+b+"");


}
}

 

标签:String,int,System,Demo07,println,Day012,out
来源: https://www.cnblogs.com/mastercjy/p/14986875.html