右边为什么要延迟2 3秒才出结果 String mark =(score>=60?"及格":"不及格");
2015-05-11
System.out.println("three += one ==>"+(three+=one));
System.out.println("three -= one==>"+(three-=one));
System.out.println("three *= one ==>"+(three*=one));
System.out.println("three/=one==>"+(three/=one));
System.out.println("three %= one ==>"+(three%one));
System.out.println("three -= one==>"+(three-=one));
System.out.println("three *= one ==>"+(three*=one));
System.out.println("three/=one==>"+(three/=one));
System.out.println("three %= one ==>"+(three%one));
2015-05-10
int sum = age1+age2+age3+age4;
double avg = sum/4;
int minus = age1-age2;
int newAge =--age1;
double avg = sum/4;
int minus = age1-age2;
int newAge =--age1;
2015-05-10
public class HelloWorld{
public static void main(String[] args) {
final String sex1 = "男";
final char sex2 = '女';
System.out.println("sex1->"+sex1);
System.out.println("sex2->"+sex2);
}
}
可以试试string和char定义相应的常量的区别
public static void main(String[] args) {
final String sex1 = "男";
final char sex2 = '女';
System.out.println("sex1->"+sex1);
System.out.println("sex2->"+sex2);
}
}
可以试试string和char定义相应的常量的区别
2015-05-10
public class HelloWorld{
public static void main(String[] args) {
String ha = "我爱慕课网";
String body ="www.imooc.com";
System.out.println(ha);
System.out.println(body);
}
}
public static void main(String[] args) {
String ha = "我爱慕课网";
String body ="www.imooc.com";
System.out.println(ha);
System.out.println(body);
}
}
2015-05-10