Java String Upper Case toUpperCase(String str)

Here you can find the source of toUpperCase(String str)

Description

Non-localized version, be careful

License

GNU General Public License

Parameter

Parameter Description
str a parameter

Declaration

public static String toUpperCase(String str) 

Method Source Code

//package com.java2s;
/*//from   www . jav a 2  s . com
 Pulsar
 Copyright (C) 2013-2015 eBay Software Foundation
 Licensed under the GPL v2 license.  See LICENSE for full terms.
 */

public class Main {
    /**
     * Non-localized version, be careful
     * 
     * @param str
     * @return
     */
    public static String toUpperCase(String str) {
        if (str != null) {
            return str.toUpperCase();
        }
        return null;
    }

    /**
     * Non-localized version, be careful
     * 
     * @param str
     * @return
     */
    public static String[] toUpperCase(String[] strArray) {
        if (strArray != null) {
            String[] ret = new String[strArray.length];
            for (int i = 0; i < strArray.length; i++) {
                ret[i] = toUpperCase(strArray[i]);
            }
            return ret;
        }
        return null;
    }
}

Related

  1. toUpperCase(String source)
  2. toUpperCase(String src)
  3. toUpperCase(String str)
  4. toUpperCase(String str)
  5. toUpperCase(String str)
  6. toUpperCase(String string)
  7. toUpperCase(String string)
  8. toUpperCase(String text)
  9. toUpperCase(String text)