if(a=b&&b=c){System.out.print("这三个数相等。");}else{if(a+b+c>1000){System.out.print("这三个数之和大于1000");}else{System.out.print("这三个数之和不大于1000");}}
单个实例Scanner要统一使用nextLine即可。
查找了资料,怀疑主要问题是出在读取的数据方面。
建议改成
double score = input.nextDouble();
input.nextLine();
if(score < 10.0){
......
String gender = input.next();
input.nextLine();
......
}
看看程序的运行是不是可以正常的输出结果。这个nextLine()的作用就是消除前面的输入格式符。