Skip to content

Instantly share code, notes, and snippets.

@scerruti
Last active November 3, 2022 02:51
Show Gist options
  • Save scerruti/d8e95341e16a4ac7994457e2f639f686 to your computer and use it in GitHub Desktop.
Save scerruti/d8e95341e16a4ac7994457e2f639f686 to your computer and use it in GitHub Desktop.
Pet Fish
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