If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Debugging Help(Homework)

The homework is to find the 10 errors and fix them and make a comment saying how you fixed it.
It complies now just have to find the 10 errors.

import java.util.Scanner;
import java.util.regex.Pattern;
/**
* A class designed to help a teacher processes grades. It provides methods
* for converting a numeric grade into a letter grade, for generation an
* appropriate message to the student based on the letter grade and a report
* that includes all three items.
*/
public class GradeReporter
{
// The limit is the inclusive lower limit for each letter
// grade -- this means that 89.5 is an 'A' not a 'B'
public static final int A_LIMIT = 90;
public static final int B_LIMIT = 80;
public static final int C_LIMIT = 70;
public static final int D_LIMIT = 70;

/** User repeatedly inputs numeric grades and the program prints out the
* grade, the letter grade and a comment until the user enters input
* beginning with the letter Q.
*
* It uses something called a "regular expression" to confirm that
* the input is numeric before attempting to convert the String input
* into a double. This is a powerful tool, and althought not covered
* in this class, it can be very useful to learn.
*/
public static void main(String[] args) {
GradeReporter reporter = new GradeReporter();
Scanner console = new Scanner(System.in);
String input = "";
String NUMERIC_ONLY = "[+-]?\\d*\\.?\\d+"; // a regular expression pattern
// you would read this as: an optional sign ([+-]?), followed by 0 or more digits (\\d*),
// followed by an optional decimal point(.?), followed by one or more digits(\\d+).