Hi I am trying to complete this code for a class and I am very new to programming, so sorry if it is a silly question, but I think I have most of the code, just am I forgetting a semicolon or something? I can't get this to compile.
import java.util.InputMismatchException; import java.util.Scanner; /* the driver class called Program5 */ public class Program5 { public static void main(String[] args) { // The driver class should instantiate a Verify object with a range of 10 to 100. Verify verify = new Verify(10, 100); //It should then do the following: // Use a Scanner to read the user input as an int. Scanner input = new Scanner(System.in); int num = 0; boolean good = true; //You can ensure that an int was entered because the nextInt method //in the validate class throws an InputMismatchException if any non digits are entered. do { good = true; try { //Prompt the user to input a number within the specified range. System.out.print("Input a number between 10-100 inclusive: "); num = input.nextInt(); } catch (InputMismatchException ex) { input = new Scanner(System.in); System.out.println("Please enter numeric integer value."); good = false; } } while (!good); try { //Call the validate method to validate that the number is within the range. verify.validate(num); //print the value if it is within the range. System.out.println("Number entered: " + num); } catch (NumberNegativeException ex) { //Print an appropriate error message if the value is not within the range, System.out.println(ex.getMessage()); } catch (NumberLowException ex) { //Print an appropriate error message if the value is not within the range, System.out.println(ex.getMessage()); } catch (NumberHighException ex) { //Print an appropriate error message if the value is not within the range, System.out.println(ex.getMessage()); } } }