1. Revise the class SquareOfStars to use only one while loop. An if statement within the loop should output a new line when appropriate.
2. A palindrome is a word that is spelled the same both forward and backward. For example, the words “racecar” and “radar” are palindromes. Define a class of words that has a constructor and the boolean-valued method isPalindrome.
Also write a driver to test your class.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here