Write a method called happyGreeting that could be added to the class DateSecondTry in Display 4.2. The method happyGreeting writes the string "Happy Days!" to the screen a number of times equal to the...



Write a method called happyGreeting that could be added to the class


DateSecondTry in Display 4.2. The method happyGreeting writes the string


"Happy Days!" to the screen a number of times equal to the value of the


instance variable day. For example, if the value of day is 3, then it should write


the following to the screen:


Happy Days!


Happy Days!


Happy Days!


Use a local variable



May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here