Answers for "how to lower case first character in string"

0

captilize the first letter of the string

String A = "ajay"
A.substring(0, 1).toUpperCase()
~it capabilitizes the first letter of the string 
o/p:
A
~concatinate the remainig lettes
A.substring(0,1).toUpperCase + A.substring(1)
o/p:
Ajay
Posted by: Guest on August-05-2021
0

awk convert first character to lowercase

echo EXAMPLE | awk '{$1=tolower(substr($1,0,1))substr($1,2)}1'
eXAMPLE		#Example first lowercased outputed
Posted by: Guest on November-26-2020

Code answers related to "how to lower case first character in string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language