944,196 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 3668
  • Java RSS
Oct 27th, 2005
0

Converting lowercase to capitals

Expand Post »
I guess I'm going to use ascii values here, taking a string and converting all letters to lowercase. I'd rather use a for loop than a huge switch statement. How do I do this?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
blastocyst is offline Offline
1 posts
since Oct 2005
Oct 27th, 2005
0

Re: Converting lowercase to capitals

String s = "lowercase";
String s2 = s.toUpperCase();

Remembers Strings are immutable so this won't work:
String s = "lowercase";
s.toUpperCase();
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: the idea of using Java for end-user GUI apps
Next Thread in Java Forum Timeline: OS utility's





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC