Question: Starting Code: /* Programmer: Date: Project: Lab 3.4 Palindrome File Name: Palindrome.java Program Description: Determines if a given word is a palindrome. */ import java.util.*;
Lab 3.4 - Palindrome A palindrome is a word that is spelled the same forward and backwards. MOM is a palindrome, as is DAD. In this lab you will complete the Palindrome class to determine if a given word is a palindrome by completing the following steps. 1. Prompt the user to enter a word. 2. Determine if the word is a palindrome letters and see if they're the same. THINK about how you can compare There are multiple ways to complete this lab. Some of you may want to use an empty String (a String that has no characters). The line below declares and initializes x to be an empty String. words or String x = . // note, the re is no space between the quotes The code below will result in x Oi tt String x phrase: Ohio State". for (int j-o; j
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
