import java.io.*;
public class MyName
{
public static void main (String [] xxx) throws IOException
{
String a;
BufferedReader read = new BufferedReader (new InputStreamReader (System.in));
System.out.print("Input A Name : ");
a = read.readLine();
System.out.print("\n");
System.out.println("Your Name : " +a);
System.out.println("Name Capacity: " +a.capacity());
System.out.println("Length Of A Name : "+a.length());
/*After the first word of the name (if the name is more than one word)
then the first letter of each word must in uppercase*/
System.out.println((a)+" change to = ".....); //i have no idea what code to wite
}
}
Input: daniel day lewis
Expected output :
daniel day lewis = ... -> capacity of input string
daniel day lewis = ... -> length of input string
"daniel day lewis" changed to "daniel Day Lewis"