one是偶数
public class HelloWorld { public static void main(String[] args) { int one = 20 ; String s = ((one%2==0)?"偶数":"非偶数"); System.out.println("one是"+s); } }
public class HelloWorld { public static void main(String[] args) { int one = 20 ; String s = ((one%2==0)?"偶数":"非偶数"); System.out.println("one是"+s); } }
2016-10-07
举报