Write a program to find out the largest and smallest word in the string in java