Here you can find the source of toUpperCase(String s)
Parameter | Description |
---|---|
s | input string |
public static String toUpperCase(String s)
//package com.java2s; /*//from w w w. ja v a 2 s . co m * This software is distributed under the terms of the FSF * Gnu Lesser General Public License (see lgpl.txt). * * This program is distributed WITHOUT ANY WARRANTY. See the * GNU General Public License for more details. */ public class Main { /** * Returns a string with all alphabetic characters converted to upper case. * * @param s input string * @return a string in upper case. */ public static String toUpperCase(String s) { return (s != null) ? s.toUpperCase() : s; } }