Here you can find the source of toUpperCase(String str)
Parameter | Description |
---|---|
str | a parameter |
public static String toUpperCase(String str)
//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; } }