Average Sentence Length Java program