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

capitalize first letter of a string

const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)
Comment

PREVIOUS NEXT
Code Example
Java :: java unique id 
Java :: long to int java 8 
Java :: A horizontal line must be drawn through the diamond, centered vertically. • The message must be printed just above the line. • The message must be horizontally centered within the applet 
Java :: since when can java command compile 
Java :: arrays.asLisy in java 
Java :: deque in java 
Java :: java mouselistener get coordinates 
Java :: java get specific element from arraylisb 
Java :: bouble to bytes[] java 
Java :: execute application jar 
Java :: java number padding zeros 
Java :: consolenausgabe java 
Java :: bungeecord plugin add configs 
Java :: how to write custom message for repeat password in joi 
Java :: how to create javafx project in eclipse 
Java :: how to download pdf file from firebase storage and save in external private storage in android 
Java :: number regex java 
Java :: java swing jtable different color each row 
Java :: java intercept ctrl c 
Java :: 2 power 8 in java 
Java :: import for Collectors java 
Java :: lombok maven 
Java :: javafx textarea new line with shift+enter 
Java :: spinner get item text 
Java :: how to add java_home in mac 
Java :: short java 
Java :: hashtable contains key java 
Java :: How to create a union-find data structure, in Java? 
Java :: Java How to use SortedMap? 
Java :: generate a random phone number in java 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =