for (int i = 1;i<=3;i++ ) {
for (int j = 1;j<=i;j++ ) {
System.out.print("*");
}
for (int j = 1;j<=i;j++ ) {
System.out.print("*");
}
2015-01-03
String juideAge=(age>=18)?"成年":"未成年";
2015-01-02
int sum=age1+age2+age3+age4;
double avg=(int)(sum/4);
int minus=age1-age2;
int newAge=--age1;
double avg=(int)(sum/4);
int minus=age1-age2;
int newAge=--age1;
2015-01-02