1 public class Test{ 2 public static void main(String[] args){ 3 int num = _; 4 if(num<0&&num==Math.abs(num)){ 5 System.out.println("Hello world!"); 6 } 7 } 8 } 9 num应该为什么值时才运行Hello world?
时间: 2024-10-23 10:40:47
1 public class Test{ 2 public static void main(String[] args){ 3 int num = _; 4 if(num<0&&num==Math.abs(num)){ 5 System.out.println("Hello world!"); 6 } 7 } 8 } 9 num应该为什么值时才运行Hello world?