请问这是怎么错的?
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if (one%2 == 0)
String res = "偶数";
else
String res = "奇数";
System.out.println("one是"+res);
}
}
public class HelloWorld {
public static void main(String[] args) {
int one = 20 ;
if (one%2 == 0)
String res = "偶数";
else
String res = "奇数";
System.out.println("one是"+res);
}
}
2018-12-15
举报