2017年10月9日
摘要: 7、算数运算符public class Count{ public static void main(String[] args) { Scanner input=new Scanner(System.in);//创一个对象 System.out.println("输入一个数"); int x=in 阅读全文
posted @ 2017-10-09 13:51 大鸟3 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 6、变量的溢出效果 public class Overflow{ public static void main(String[] args) { int big=0x7fffffff; System.out.println(big); } 阅读全文
posted @ 2017-10-09 13:50 大鸟3 阅读(74) 评论(0) 推荐(0) 编辑
摘要: public class Long{ public static void main(String[] args) { long l=123456789012345l;//java中默认类型为Int型,电脑想要识别长整型需加l(或L) System.out.println(l); } 2、输出一个单 阅读全文
posted @ 2017-10-09 13:48 大鸟3 阅读(85) 评论(0) 推荐(0) 编辑