收起
没有提供字符输入方法,你可以直接定义字符串类型。好几处错误,按照下列修改。
String num3=num.next(); if(num3.equals("Y")){ }else if(num3.equals("N")){ }
报告相同问题?