Answers for "string to upper case java"

0

string to uppercase

const upperCase = function(names){
    const toLower = names.toLowerCase().split(' ');
    const namesUpper = [];
    for(const wordName of toLower){
        namesUpper.push(wordName[0].toUpperCase() + wordName.slice(1));
    }
    return namesUpper.join(' ');
}
Posted by: Guest on December-31-2020
0

uppercase string java

String var_name = "Jerry";
System.out.println(var_name.toUpperCase()); //JERRY
Posted by: Guest on August-26-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language