这样也行吗
也行? public class HelloWorld{ public static void main(String[] args) { int score=68; String mark = score>=60?"及格" String mark = score<=60?"不及格" System.out.println("考试成绩如何:"+mark); } }
也行? public class HelloWorld{ public static void main(String[] args) { int score=68; String mark = score>=60?"及格" String mark = score<=60?"不及格" System.out.println("考试成绩如何:"+mark); } }
2016-11-22
举报