+ 2

Help with this problem

Write a program that asks the user to enter words. The program in each iteration will ask the user if he wants to continue entering more words. In each iteration the program verifies if the word contains three consecutive letters in the alphabet. with java

27th Jan 2018, 3:59 PM
Madeline Maldonado
1 Answer
+ 14
here we can give whole input in 1 go only 1)make use of loop & charAt(int value) function , //g=1 charAt(i)==charAt(i+1) ... then increase value of variable g by 1 else make g=1 again & if g becomes 3 ... then System.out.print("find");break; //many more methods also
27th Jan 2018, 4:06 PM
Gaurav Agrawal
Gaurav Agrawal - avatar