!=小知识点

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);
			
			
		}
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值