Answers for "captilize the first letter of the 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

Code answers related to "captilize the first letter of the string"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language