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...


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.



May 18, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here