62,614
社区成员
发帖
与我相关
我的任务
分享
public static void main(String[] args) {
String oneNumber = "";
String twoNumber = "";
String operator = "";
boolean bresult = true;
Scanner input = new Scanner(System.in);
double one = 0;
double two = 0;
double result = 0;
int length = 16;
while (true) {
System.out.println("输入第一个数:");
//获取参数
oneNumber = input.nextLine();
if (oneNumber.length() > length) {
System.out.println("输入的长度超过" + length + "位请重新输入");
continue;