class OperateDemo
{
public static void main(String[] args)
{
//int x = 4270;
//x = x /1000 * 1000;
//int a = 3,b;
//b = ++a;
//System.out.println("a="+a+",b="+b);
//System.out.println("5+5="+(5+5));
//+代表与后面的紧密相连,看起来结果更直观方便。
//字符串数据与任何数据都是使用+相连接的,最终会变成字符串。
/*
转义字符:通过\来转变后面字母或者符号的含义。
\n:换行。
\b:退格。
\r:按下回车键。windows系统中,Enter用两个字符表示\r\n
\t:制表符,相当于tab键。
*/
//System.out.println("hello \n \bworld");
//System.out.println("hello java");
/*System.out.println("\"hello\"");
System.out.println("\\hello\\");
char ch ='\n';
char c = '你';
System.out.println(ch);
System.out.println( c );*/
int x = 3;
//+= -= *= %= /= !=
x+=4;
short s = 4;
//s =s + 5;
s+=5;
int a,b,c;
a = b = c = 5;
System.out.println(3<4);
System.out.println(3>=4);
}
}