String mark =(score>=60)?"及格":"不及格";
System.out.println("考试成绩如何:"+mark);
System.out.println("考试成绩如何:"+mark);
2014-12-18
three=one+two;
System.out.println(three);
three+=one;
System.out.println(three);
three-=one;
System.out.println(three);
three*=one;
System.out.println(three);
three/=one;
System.out.println(three);
three%=one;
System.out.println(three);
System.out.println(three);
three+=one;
System.out.println(three);
three-=one;
System.out.println(three);
three*=one;
System.out.println(three);
three/=one;
System.out.println(three);
three%=one;
System.out.println(three);
2014-12-18
public class HelloWorld{
public static void main(String[] args) {
String love="我爱慕课网慕课网";
String url="www.imooc.com";
System.out.println(love+"\n"+url);
}
}
public static void main(String[] args) {
String love="我爱慕课网慕课网";
String url="www.imooc.com";
System.out.println(love+"\n"+url);
}
}
2014-12-18
public class HelloWorld{
public static void main(String[] args){
System.out.println("你好啊,java");
}
}
public static void main(String[] args){
System.out.println("你好啊,java");
}
}
2014-12-18
public class HelloWorld{
public static void main(String[] args) {
final String MEN="男";
final String WOMEN="女";
System.out.println(MEN+WOMEN);
}
}
public static void main(String[] args) {
final String MEN="男";
final String WOMEN="女";
System.out.println(MEN+WOMEN);
}
}
2014-12-17
Public static void main(String [] args){
final char GIRL=’男‘;
final char BOY =’女‘;
System.out.println(GTRL+BOY);
这样行吗
final char GIRL=’男‘;
final char BOY =’女‘;
System.out.println(GTRL+BOY);
这样行吗
2014-12-17