Religious Studies homework help. Java program that reads a sentence, say s, consisting of 5 lower-case words with .nextLine()method, identifies the using .indexOf() and .substring() methods and saves them in 5 Stringvariables. Then the program will perform the following two operations: