Question: java please (input and output) Assignment #icb - A Less Basic string Program Using the string methods that we have learned so fat, write a
Assignment \#icb - A Less Basic string Program Using the string methods that we have learned so fat, write a program that will allow the user to type in line of text until the user types in the phrase "The end" on a line by itself. The program will print the number of lines that contain the string "is". Strings have two basic methods that. you will need for this assignment: - s.indexOf( t - which returns the position where substring t appears in s. If t does not appear in s, it returns 1. - keyb.nextLine0 - which reads in an entire line of text as a string
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
