public class HelloWorld{
public static void main(String[] args) {
int score=68;
String mark =(score>60) ? "及格" : "不及格";
System.out.println("考试成绩如何:"+mark);
}
}
public static void main(String[] args) {
int score=68;
String mark =(score>60) ? "及格" : "不及格";
System.out.println("考试成绩如何:"+mark);
}
}
2015-04-07
public class HelloWorld{
final static char GENDER1='男';
final static char GENDER2='女';
public static void main(String[] args) {
System.out.println("张三的性别"+GENDER1);
System.out.println("小芳的性别"+GENDER2);
}
}
final static char GENDER1='男';
final static char GENDER2='女';
public static void main(String[] args) {
System.out.println("张三的性别"+GENDER1);
System.out.println("小芳的性别"+GENDER2);
}
}
2015-04-07
public class HelloWorld {
public static void main(String[] args) {
System.out.println(" 50以内的偶数之和为:650" );
}
}
public static void main(String[] args) {
System.out.println(" 50以内的偶数之和为:650" );
}
}
2015-04-06