Results 1 to 2 of 2
  1. #1
    reverton is offline Member
    Join Date
    Apr 2013
    Rep Power

    Default How to lowercase all arguments

    Is there a better way of only changing all arguments to lowercase?
    Java Code:
                for (int i=0; i<args.length; i++) { 
                    String str = args[i].toLowerCase();

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power

    Default Re: How to lowercase all arguments

    toLowerCase() is about as good as it gets if you want a lowercase version of a String.

Similar Threads

  1. Random lowercase letter
    By codeAJ in forum New To Java
    Replies: 3
    Last Post: 05-31-2011, 01:54 AM
  2. Check uppercase or lowercase letter
    By ala_mages in forum New To Java
    Replies: 2
    Last Post: 12-30-2010, 02:16 PM
  3. Replies: 8
    Last Post: 09-23-2010, 12:07 AM
  4. uppercase and lowercase please help
    By cuziwow in forum New To Java
    Replies: 4
    Last Post: 04-11-2010, 07:54 AM
  5. String uppercase/lowercase
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-19-2007, 09:22 AM

Posting Permissions

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