How to resolve NumberFormatException: Empty string?
问题 When I run this program i get the error Exception in thread "main" java.lang.NumberFormatException: empty String. Is it possible to make this work by throwing the exception some how or must I use a try catch statement? private double[] scores3 = new double[5]; Scanner keyboard = new Scanner(System.in); public void enterData() { double score; double numberMin = 0; double numberMax = 100; do{ System.out.println("Enter the student's third test score"); while (!keyboard.hasNextDouble()) {