@Krish see this code here we are Converting a string to in this form where first letter is capital and others are small, As you was asking.
String A = "ASDF";
String B = A.substring(0, 1).toUpperCase() + A.substring(1).toLowerCase();
System.out.println(B);
OUT PUT : Asdf
I hope this will help you out.