public void codeLifeCycle(Life mylife){ myLife.eat(); myLife.sleep(); myLife.code(); if (!myLife.death()){ codeLifeCycle(mylife); } }