Answers for "given string first letter will be captical and all word are small in letter"

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 "given string first letter will be captical and all word are small in letter"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language