java equals后面多个字符串问题
for(;;){System.out.println("是否继续查询日历(yes/no)");
String a=oul.next();
if(a.equals("yes"||"y"||"Y"||"Yes")){
System.out.println("请输入年份");
int year=oul.nextInt();
}break;
//debug时二元运算符"||"操作数类型错误。请问应该怎么做?
2016-06-21 17:27
2016-06-22 09:33
2016-06-26 20:41
2016-06-26 21:53
2016-06-26 22:12