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-03
System.out.println("three = one + two ==> "+(three = one+two));
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-03
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-03
int sum=age1+age2+age3+age4;
double avg = sum/4;
int minus=age1-age2;
int newAge=age1--;
System.out.println("年龄总和:"+sum);
System.out.println("平均年龄:"+avg);
System.out.println("年龄差值:"+minus);
System.out.println("自减后的年龄:"+newAge);
double avg = sum/4;
int minus=age1-age2;
int newAge=age1--;
System.out.println("年龄总和:"+sum);
System.out.println("平均年龄:"+avg);
System.out.println("年龄差值:"+minus);
System.out.println("自减后的年龄:"+newAge);
2015-05-03
public class HelloWorld{
public static void main(String[] args) {
final char female = '男';
final char male = '女';
System.out.println("female:->"+female);
System.out.println("male:->"+male);
}
}
public static void main(String[] args) {
final char female = '男';
final char male = '女';
System.out.println("female:->"+female);
System.out.println("male:->"+male);
}
}
2015-05-02