More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. public class BuggyBread {
public static void main(String args[]) {
String str = "we are what we repeatedly Do excellence, then, is not an act but a haBit";
for(String word:str.split(" ")){
if(word.length() > 2 && word.endsWith("it")){
System.out.println(word);
}
}
}
}
Help us improve. Please let us know the company, where you were asked this question :