Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #uppercase #letter #string #java
ADD COMMENT
Topic
Name
2+1 =