final char SEX ='男';
final char HOBBY ='女';
System.out.println("SEX:\t"+SEX);
System.out.println("HOBBY:\t"+HOBBY);
final char HOBBY ='女';
System.out.println("SEX:\t"+SEX);
System.out.println("HOBBY:\t"+HOBBY);
2015-02-14
for (int i = 1; i <= 10; i++) {
// 如果i为奇数,结束本次循环,进行下一次循环
if ( i%2 ==1) {
continue;
}
sum = sum + i;
}
// 如果i为奇数,结束本次循环,进行下一次循环
if ( i%2 ==1) {
continue;
}
sum = sum + i;
}
2015-02-14