Java: Exception Handling in Time Program

Java: Exception Handling in Time Program

This program demonstrates how to use exceptions in Java. It allows the user to enter a time in 24-notation. The program throws an exception if the format or numbers are invalid. If no exceptions exist it converts the time and outputs it in 12-hour notation to the console. This was an assignment for an advanced java course at my local community college.

Leave a Reply

Your email address will not be published. Required fields are marked *