Here you can find the source of toUpperCase(String candidate)
Parameter | Description |
---|---|
candidate | a parameter |
public static String toUpperCase(String candidate)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { /**//from w w w .j a v a 2 s. co m * Wraps to UpperCase first char in candidate * * @param candidate * * @return candidate */ public static String toUpperCase(String candidate) { if (candidate.length() >= 1) return Character.toUpperCase(candidate.charAt(0)) + candidate.substring(1); return candidate; } }