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

    Default ArrayList<String> convert to lowercase

    Hi
    I have and ArrayList<String> and Vector<String>. I want to convert all its element to lowercase without doing individual element. Can someone tell how to do with both or anyone of them...

    Thanks in advance.

    With best Regards

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

    Default

    Quote Originally Posted by s_mehdi76 View Post
    Hi
    I have and ArrayList<String> and Vector<String>. I want to convert all its element to lowercase without doing individual element.
    Why "without doing individual element"? Do you even know if this is possible?

  3. #3
    s_mehdi76 is offline Member
    Join Date
    Oct 2010
    Posts
    2
    Rep Power
    0

    Default

    Quote Originally Posted by Fubarable View Post
    Why "without doing individual element"? Do you even know if this is possible?
    thats what i want to know??

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by s_mehdi76 View Post
    thats what i want to know??
    Then that's what your original post should have asked. The answer is no.

    But more importantly, why do you feel you need this ability? What will your program do that it previously couldn't do if you had a method that did this rather than iterate through the collection and change items one at a time?

Similar Threads

  1. Convert variable name to string.
    By MHardeman25 in forum New To Java
    Replies: 9
    Last Post: 08-17-2010, 10:18 PM
  2. convert obj to string
    By isme in forum New To Java
    Replies: 11
    Last Post: 06-14-2010, 11:54 AM
  3. uppercase and lowercase please help
    By cuziwow in forum New To Java
    Replies: 4
    Last Post: 04-11-2010, 08:54 AM
  4. Putting a string into ArrayList<String>
    By k4ff1n34dd1c7 in forum New To Java
    Replies: 5
    Last Post: 03-23-2009, 06:10 PM
  5. String uppercase/lowercase
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-19-2007, 10:22 AM

Tags for this Thread

Posting Permissions

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