Question JAVAI need to make a program that asks users to enter 5 words; and prints the list of  palindrome and not palindrome words.If user input is:  dad, 123, mom, xyz, racecarThe output will be:Palindrome: dad, mom, racecarNot palindrome; 123, xyz Note: Perform palindrome check using a loop; also implement the palindrome check in a method with in the program

DCW1LB The Asker · Computer Science

JAVA

I need to make a program that asks users to enter 5 words; and prints the list of  palindrome and not palindrome words.

If user input is:  dad, 123, mom, xyz, racecar

The output will be:

Palindrome: dad, mom, racecar

Not palindrome; 123, xyz 

Note: Perform palindrome check using a loop; also implement the palindrome check in a method with in the program

More