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

make the first letter of a string upper case

>>> "hello world".title()
'Hello World'
>>> u"hello world".title()
u'Hello World'
Comment

java first letter to upper case

StringUtils.capitalize(..)
Comment

PREVIOUS NEXT
Code Example
Java :: how to move a marker on google maps in android studio 
Java :: android application manifest 
Java :: how to remove null values in java 
Java :: Java Creating a Vector 
Java :: java time difference 
Java :: how to find the length of a string in java without using length function 
Java :: findviewbyid in kotlin Just using id name . 
Java :: java mongodb find with multiple conditions 
Java :: javac celar 
Java :: java store hexadecimal value 
Java :: hadoop-master error java_home is not set and could not be found 
Java :: java type casting 
Java :: how to initialize array in java with 0 
Java :: count occurrences of character in string java using hashmap 
Java :: string format java 
Java :: convert fileinputstream to string java 
Java :: how to center a window in java 
Java :: java for loop increment by 3 
Java :: nested list java 
Java :: how to set boolean to false if null java 
Java :: arraylist add new element to end 
Java :: one line if statement java 
Java :: how to change tablayout current view position in android 
Java :: java turn string into int 
Java :: maven artifact 
Java :: set view size android 
Java :: java android development find element by id 
Java :: java enum 
Java :: his version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer. 
Java :: convert list of dto to map java 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =