Answers for "how to capitalize first letter of a strinng"

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

first Letter as Capital

string.charAt(index)
Posted by: Guest on October-19-2021

Code answers related to "how to capitalize first letter of a strinng"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language