摘要:
public class zitest { public static void main(String[] args) { int c,a=10,b=20,x=30,y=40; c=a++; System.out.println("初始值a=10,b=20"); System.out.println(... 阅读全文
摘要:
public class Logic { public static void main(String[] args) { boolean a,b,c; a=true; b=false; System.out.println("逻辑运算,其中a=TRUE,b=FALSE"); ... 阅读全文
摘要:
代码中使用1表示闰年,0表示不是闰年 public class leap_years { public static void main(String[] args) { int year = Integer.parseInt(args[ 0]); int leap; if(year%4==0) ... 阅读全文