Write down the java program which will read the line of text which ends with the period, which serves as sentinel value. Show all the letters which occur in the text, one per line and in alphabetical order, along with number of times each letter happens in the text. Use the array of base type int of length 26, so that element at index 0 contains number of 'a's, and so forth.