Results 1 to 2 of 2
  1. #1
    jeata is offline Member
    Join Date
    Oct 2010
    Posts
    33
    Rep Power
    0

    Default Strings Lower/UpperCase

    Hi

    I'm just screwing around with strings. I just managed to reverse a string using a "for" loop. I managed to convert chars from lower to uppercase and vice versa, but now I can't manage to convert particular chars in the string from upper to lowercase. For example let's say, I want to convert "HaLLoWeeN" to "hAllOwEEn", do you have any ideas ?

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,270
    Blog Entries
    1
    Rep Power
    25

    Default

    Check out the API for the Character class as it has some useful methods that you'll be able to use such as isUpperCase(char ch).

Similar Threads

  1. char conversion to uppercase
    By PsychoNaut in forum New To Java
    Replies: 2
    Last Post: 10-12-2010, 02:09 AM
  2. uppercase and lowercase please help
    By cuziwow in forum New To Java
    Replies: 4
    Last Post: 04-11-2010, 07:54 AM
  3. Need Help for this problem Uppercase.
    By ezered in forum New To Java
    Replies: 5
    Last Post: 12-04-2009, 12:05 AM
  4. Global Data Entry. Earn $2,000 a day use rebate lower price save money $$$
    By arturmoniswork in forum Reviews / Advertising
    Replies: 0
    Last Post: 12-27-2008, 01:35 AM
  5. UpperCase problem
    By logieen in forum New To Java
    Replies: 1
    Last Post: 08-03-2008, 11:26 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •