Question: how to check if a string contains only characters?
Answer: Read the String.
Convert all the characters in the given String to lower case using the toLower() method.
Convert it into a character array using the toCharArray() method of the String class.
Find whether every character in the array is in between a and z, if not, return false.