System.out.print("Enter your answer rounding to the tenths place and in the format (#.#): ");
double answer = scanner.nextDouble();
int num1 = Integer.parseInt(line.split("\s+")[0]);
int num2 = Integer.parseInt(line.split("\s+")[2]);
double correctAnswer = Math.round((double)num1 / num2* 10.0)/ 10.0;
System.out.print("Enter your answer rounding to the tenths place and in the format (#.#): "); double answer = scanner.nextDouble(); int num1 = Integer.parseInt(line.split("\s+")[0]); int num2 = Integer.parseInt(line.split("\s+")[2]); double correctAnswer = Math.round((double)num1 / num2* 10.0)/ 10.0;
on line 253 thru 257