Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

how to uppercase the first letter of a string in java

String str = "java";
String cap = str.substring(0, 1).toUpperCase() + str.substring(1);
// cap = "Java"
Comment

java first letter to upper case

StringUtils.capitalize(..)
Comment

PREVIOUS NEXT
Code Example
Java :: java get files in directory 
Java :: android java increment hashmap value 
Java :: array to map javax 
Java :: kill all java processes windows 
Java :: java remove non numbers from string 
Java :: spring annotations xml configuration 
Java :: java bufferedimage get raster data 
Java :: java import swing 
Java :: SpEL define default 
Java :: java GUI jframe text 
Java :: javafx icon button 
Java :: how to set event priority in spigot 
Java :: cannot lock java compile cache as it has already been locked by this process 
Java :: remove last character from string java 
Java :: activity as a splash screen java code 
Java :: big screen jframe 
Java :: how to get time in dd/mm/yyyy format in java 
Java :: java print stacktrace to file 
Java :: long to int java 8 
Java :: java windowlistener close window 
Java :: Why is it not recommended to use script elements in jsp? 
Java :: similarity between abstract class and interface java 
Java :: plus one leetcode 
Java :: how to set audio of a java sound clip 
Java :: java create set with values 
Java :: android navigation bar color change 
Java :: spring data rest format time 
Java :: dagger kapt dependency and plugin 
Java :: check if string has a valid number java 
Java :: how does devision works in Java 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =