Android Blog

Provides Information on Android

Saturday, 29 September 2012

android: How to make first letter capital in String

String s = "hello";
Integer x = s.length();
String s2 = s.substring(0,1).toUpperCase().concat(s.substring(1, x));
Posted by Unknown at 05:18
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: Android

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

About Me

Unknown
View my complete profile

Pages

  • Home

Blog Archive

  • ►  2014 (1)
    • ►  May (1)
  • ►  2013 (47)
    • ►  September (5)
    • ►  August (4)
    • ►  July (1)
    • ►  June (6)
    • ►  May (6)
    • ►  April (4)
    • ►  March (11)
    • ►  February (4)
    • ►  January (6)
  • ▼  2012 (41)
    • ►  December (14)
    • ►  November (7)
    • ►  October (7)
    • ▼  September (13)
      • android: How to make first letter capital in String
      • android: Alert Dialog with two buttons
      • android: AutoCompleteTextView with addTextChangedL...
      • android: Add params to already existing View in th...
      • android: Splash screen
      • android: Dynamic Menus with out XML
      • android: Capture the BACK button keypress from the...
      • android: Listview -set visibility of checkboxes in...
      • android: Custom Alert Dialog
      • android: Listview with radio button (only one radi...
      • android: ListVew with Radio button setOnCheckedCha...
      • android: Hasp Map With String Array Grouped by cat...
      • android: How use HashMap in ArrayList in android?
Simple theme. Theme images by luoman. Powered by Blogger.