摘要: public class TestNum { public static void main(String[] args) { // TODO 自动生成的方法存根 int i=0; int j=0; int k=0; int n=0; int p=0; for(int m=100;m<100;m++ 阅读全文
posted @ 2017-03-13 22:32 大仁哥汪宝 阅读(205) 评论(0) 推荐(0) 编辑
摘要: public class Calculate { public static void main(String[] args) { // TODO 自动生成的方法存根 long s=1; int k=Integer.parseInt(args[0]); for(int i=1;i<k;i++){ s 阅读全文
posted @ 2017-03-12 23:11 大仁哥汪宝 阅读(194) 评论(0) 推荐(0) 编辑
摘要: public class TestSwitch { public static void main(String[] args) { // TODO 自动生成的方法存根 String x=args[0]; switch(x){ case"春天": System.out.println("春天般的温暖 阅读全文
posted @ 2017-03-12 17:05 大仁哥汪宝 阅读(202) 评论(0) 推荐(0) 编辑
摘要: public class LeapYear { public static void main(String[] args) { // TODO 自动生成的方法存根 int year=Integer.parseInt(args[0]); int leap; if(year%4==0){ if(yea 阅读全文
posted @ 2017-03-12 16:53 大仁哥汪宝 阅读(226) 评论(0) 推荐(0) 编辑
摘要: public class LogicTest { public static void main(String[] args) { boolean a,b,c; a=true;b=false; c=a&b; System.out.println(c); c=a|b; System.out.print 阅读全文
posted @ 2017-03-12 16:33 大仁哥汪宝 阅读(201) 评论(0) 推荐(0) 编辑
摘要: public class Test { /** * @param args */ public static void main(String[] args) { int i1=5,i2=10; int i= (i2++); System.out.println("i="+i1); System.o 阅读全文
posted @ 2017-03-12 16:27 大仁哥汪宝 阅读(99) 评论(0) 推荐(0) 编辑
摘要: public class TypeCast { public static void main(String[] args){ byte b=1; int i=b; float f=b; double d=b; char ch='c'; int i2=ch; System.out.println(" 阅读全文
posted @ 2017-03-12 16:16 大仁哥汪宝 阅读(256) 评论(0) 推荐(0) 编辑
摘要: public class substring { public static void main(String[] av) { String a = "Java is great."; System.out.println(a); String b= a.substring(5); System.o 阅读全文
posted @ 2017-03-11 21:59 大仁哥汪宝 阅读(93) 评论(0) 推荐(0) 编辑