Skip to main content

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);
Top Questions
No questions with score of 5 or more