Chapter 3: Control Statements

// Convert string into integer int numOfStudents = Integer.parseInt(numOfStudentsString); int[] scores = new int[numOfStudents]; // Array scores int best = 0; // The best score char grade; // The grade // Read scores and find the best score for (int i = 0; i < scores.length; i++) { String scoreString = JOptionPane.showInputDialog ................
................