Just before you print each letter, check to see if its greater than 'J', if it is, you can exit your program immediately (exit is a method in the System class)
Reputation Points: 1924
Solved Threads: 952
Posting Expert
Offline 5,788 posts
since Apr 2008