Last active
November 3, 2022 02:51
-
-
Save scerruti/d8e95341e16a4ac7994457e2f639f686 to your computer and use it in GitHub Desktop.
Pet Fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fish classPet = new Fish(); | |
while (!isSummerBreak) { | |
classPet.feedDaily(); | |
} | |
Thread.sleep(30*24*60*60*1000); | |
if (!classPet.isAlive()) { | |
classPet = new Fish(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment