Programming Tutorials Browser Tutorials Articles Struts Tutorials Hibernate Tutorials

  Tutorial: Example: Capitalize

This program reads a word, makes the first letter upper case and the remainder lower case, and outputs it.

Tutorial Details:

This program reads a word, makes the first letter upper case and the remainder lower case, and outputs it. The input-process-output organization is very common in simple programs.

Error handling - Happy Trails
This is a Happy Trails program, one that doesn't worry about bad input. What could be bad? It wouldn't work if the empty string (string with zero characters in it) was used as input, or the cancel button or the close box was clicked. In later programs we'll add a little extra code to handle these cases.


 

Rate Tutorial:
http://www.roseindia.net/java/java-tips/examples-introductory/dialog/capitalize.shtml

Read Tutorial at: Click here to view the tutorial

Rate Tutorial:
Example: Capitalize

View Tutorial:
Example: Capitalize

Related Tutorials:

Site navigation
 

 

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2006. All rights reserved.