摘要: 1 package cn.sice; 2 3 import java.math.BigInteger; 4 5 public class BigMathDemo 6 { 7 8 public static void main(String[] args) 9 { 10 for (int i = 0; i = length2) 96 { 97 // 数组长度+1,避免最高位进位,超出数组位数 98 length = length1 + 1; 99 } else... 阅读全文
posted @ 2014-02-08 23:44 一路向北中 阅读(260) 评论(0) 推荐(0)
摘要: 1 package cn.sice; 2 3 public class SwtichDemo 4 { 5 6 public static void main(String[] args) 7 { 8 int x = 1; 9 byte b = 2;10 short s = 3;11 char c = 4;12 switch (c)13 {14 case 1:15 System.out.println("int = " + x);16 ... 阅读全文
posted @ 2014-02-08 21:18 一路向北中 阅读(301) 评论(0) 推荐(0)
摘要: 1 package cn.sice; 2 3 public class OutMultFor 4 { 5 6 public static void main(String[] args) 7 { 8 boolean flag = true; 9 hh: for (int i = 0; i < 10 && flag; i++)10 {11 ss: for (int j = 0; j < 10; j++)12 {13 System.out.print... 阅读全文
posted @ 2014-02-08 21:01 一路向北中 阅读(117) 评论(0) 推荐(0)
摘要: 1 package cn.sice; 2 3 public class CharTest 4 { 5 6 public static void main(String[] args) 7 { 8 sop((char) 65633);// a 9 sop((char) (65633 - 65536));// a10 }11 12 public static void sop(Object obj)13 {14 System.out.println(obj);15 }16 17 publi... 阅读全文
posted @ 2014-02-08 20:21 一路向北中 阅读(466) 评论(0) 推荐(0)