Dec 7, 2004 #1 papaboy2 MIS Joined Jan 28, 2003 Messages 52 Location PH How can i make the First character of the string to Uppercase? thanks very much!
Dec 7, 2004 #2 Hattusas Programmer Joined Nov 11, 2001 Messages 344 Location TR Basic usage Code: String text="hattusas"; text.substring(0,1).toUpperCase() + text.substring(1); /*returns Hattusas*/ Extended Use Code: String text="hattusas; return text.substring(0,1).toUpperCase(new java.util.Locale("TR","tr")) + text.substring(1); Salih Sipahi Software Engineer. City of Istanbul Turkey s.sipahi@sahinlerholding.com.tr Upvote 0 Downvote
Basic usage Code: String text="hattusas"; text.substring(0,1).toUpperCase() + text.substring(1); /*returns Hattusas*/ Extended Use Code: String text="hattusas; return text.substring(0,1).toUpperCase(new java.util.Locale("TR","tr")) + text.substring(1); Salih Sipahi Software Engineer. City of Istanbul Turkey s.sipahi@sahinlerholding.com.tr