Assignment 6 (10 points):
Using JGrasp
Write a Java program that meets the following requirements:-
From Textbook page 489 #12.8 HexFormatException
As usual, add the standard comments.
Purpose:
Create a java program from detailed directions.
Ability to:
Follow established programming conventions for writing java programs
Able to create a custom exception
Able to use if statements
Able to use a for loop
Able to use a try catch block
Able to print output
*12.8 ( HexFormatException ) Exercise 12.6 implements the hex2Dec method to
throw a NumberFormatException if the string is not a hex string. Define
a custom exception called HexFormatException . Implement the hex2Dec
method to throw a HexFormatException if the string is not a hex string.

WhatsApp us