Results 1 to 2 of 2

Thread: looping with string

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Sep 2005
    Posts
    1,364

    looping with string

    say for e.g, i have this string

    "Hello, how are you"

    what i basically want to do is convert the string to this

    hELLO, HOW ARE YOU"

    so it converts the uppercase letters to low, and vice versa
    it should only change the normal letters, i.e a-z and A-Z, and not anything else

    can anyone help me please?

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    Re: looping with string

    Look at java.lang.Character - it's got a lot of useful static methods.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

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



Click Here to Expand Forum to Full Width