我需要知道为什么我在第 18-21 行收到此错误。我觉得它可能是与支架相关的问题,但我无法弄清楚。
import java.util.Scanner;
public class Proj4_1 {
public static void main(String [] args) {
Scanner reader = new Scanner(System.in);
int numb1 =;
int numb2 =;
int div =;
int remainder =;
System.out.println("Enter a number: ");
numb1 = reader.nextint();
System.out.print(numb1);
System.out.println("Enter another number: ");
numb2 = reader.nextint();
System.out.print(numb2);
if (numb1>numb2){
div = numb1 / numb2;
remainder = numb1 % numb2;
}else{
if (numb2>numb1)
div = numb2 / numb1;
remainder = numb2 % numb2;
}
System.out.println("The answer quotient is " +div+ "with a remainder of" +remainder);
任何帮助或建议将不胜感激,在此先感谢