Java String Upper Case toUpperCase(String s)

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

Description

Returns a string with all alphabetic characters converted to upper case.

License

LGPL

Parameter

Parameter Description
s input string

Return

a string in upper case.

Declaration

public static String toUpperCase(String s) 

Method Source Code

//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;
    }
}

Related

  1. toUpperCase(String in)
  2. toUpperCase(String input)
  3. toUpperCase(String pString)
  4. toUpperCase(String s)
  5. toUpperCase(String s)
  6. toUpperCase(String s)
  7. toUpperCase(String s)
  8. toUpperCase(String s)
  9. toUpperCase(String s)