写成int a为啥不可以??????
public class HelloWorld { public static void main(String[] args) { int one = 20 ; int a=20%2 if(a==0){ System.out.println("one是偶数"); }else{ System.out.println("one是奇数"); } } }写成int a为啥不可以??????
public class HelloWorld { public static void main(String[] args) { int one = 20 ; int a=20%2 if(a==0){ System.out.println("one是偶数"); }else{ System.out.println("one是奇数"); } } }写成int a为啥不可以??????
2016-03-30
举报