int licks = 0; while(!tootsiePop.atCenter()) { tootsiePop.lick(); licks++; }
System.out.println("How many licks does it take to get to the tootsie roll center of a tootsie pop?\r\n " + licks);