Question: Write a Java Code.The program will take a series of words until 0 is inputted. If the word has letters more than 5, it should

Write a Java Code.The program will take a series of words until 0 is inputted. If the word has letters more than 5, it should print that word. The word should be in lower case form. If there is no such word, your program should print out 0.

Input Format

A single line that includes words and 0 at the end. The words can contain numbers as well

Constraints

There is no constraints.

Output Format

A single line gives the proper words separately.

Sample Input 0

fast university bigger cat market large massive expensive 0 

Sample Output 0

university bigger market massive expensive

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!