System.out,println(a||b+"应该会返回true");
System.out,println(a&&b+"应该会返回false");
System.out,println(!b+"返回true");
System.out,println(a^b +"返回true");
System.out,println(a&&b+"应该会返回false");
System.out,println(!b+"返回true");
System.out,println(a^b +"返回true");
2014-12-27
int sum = age1+age2+age3+age4;
double avg = (age1+age2+age3+age4)/4;
int minus = age3-age2;
int newAge = --age1;
年龄为什么不用小数应该是因为年龄不会说成0.25岁吧
double avg = (age1+age2+age3+age4)/4;
int minus = age3-age2;
int newAge = --age1;
年龄为什么不用小数应该是因为年龄不会说成0.25岁吧
2014-12-27
public class HelloWorld{
public static void main(String[] args) {
final String USER = "方**";
final char SEX = "神";
System.out.print(USER + "\n" + SEX);
}
}
为什么char显示不了啊,这样应该没错啊
public static void main(String[] args) {
final String USER = "方**";
final char SEX = "神";
System.out.print(USER + "\n" + SEX);
}
}
为什么char显示不了啊,这样应该没错啊
2014-12-27
public class HelloWorld{
public static void main(String[] args) {
double avg1=78.5;
int rise=5;
int avg2=(int)(avg1+rise);
System.out.println("考试平均分:"+avg1);
System.out.println("调整后的平均分:"+avg2);
}
}
我就是稀饭用强的╮(╯▽╰)╭
public static void main(String[] args) {
double avg1=78.5;
int rise=5;
int avg2=(int)(avg1+rise);
System.out.println("考试平均分:"+avg1);
System.out.println("调整后的平均分:"+avg2);
}
}
我就是稀饭用强的╮(╯▽╰)╭
2014-12-26