import java.util.Scanner;
public class FractionTester
{
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int num1 = scan.nextInt();
int num2 = scan.nextInt();
int num3 = scan.nextInt();
int num4 = scan.nextInt();
}
}
This code keeps throwing the error FractionTester.java: Line 10: java.util.NoSuchElementException can anybody explain why or how to fix it, please? Thank you all in advance.