String Too Long Exception

Tue May 05, 2009 12:50 pm

Design and implement a program that creates an exception class called StringTooLongException, designed to be thrown when a string is discovered that has too many characters in it. In the main driver of the program, read strings from the user until the user enters "done". If a string is entered that has too many characters, say 20, throw the exception. Allow the thrown exception to terminate the program.

  Related Posts  to : String Too Long Exception
 Long files name     -  
 Sorry for long absence     -  
 recursive string reversal- reverse string     -  
 check if string ends with specific sub-string in php     -  
 check if string start with a specific sub-string in PHP     -  
 Splitting a String Based on a Found String     -  
 Out of Bounds exception     -  
 Exception is not clear     -  
 Exception handling     -  
 String token for string split     -