Write a class WordReport that reads one line of text and prints a small report:
Words: 5
Longest: programming
Capitalised: Java Is A Fun Language
Wordscounts the words (separated by spaces);Longestis the longest word (the first one, if several have the same length);Capitalisedprints the sentence with every word starting with a capital letter.
Use split(" ") and StringBuilder.