摘要: public class StringTest { public static void main(String[] args) { String strA = "abc"; String strB = "abc"; String strC = new String("abc"); Sy... 阅读全文
posted @ 2015-09-29 23:15 WhyToHow 阅读(363) 评论(0) 推荐(0) 编辑
摘要: public class JiOu { public static void main(String[] args) { int a = 11; System.out.println("这个数是" + (a % 2 == 0?"偶数":"奇数")); int b = 11; if (b ... 阅读全文
posted @ 2015-09-29 17:01 WhyToHow 阅读(2014) 评论(0) 推荐(0) 编辑