+ 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
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