TEKsystems Interview Question

Write single Java program for: a)Accepts a string of alpha numeric characters from user. b)Prints the character that occurs most number of times in the input string. c)Print avg length of the word in the same input string.