package test;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
int s=69;
int n = s > -1 ? 6 :4 ;
System.out.println(n);
}
}
输出结果为6
package test;
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
int s=69;
int n = s > -1 ? 6 :4 ;
System.out.println(n);
}
}
输出结果为6