13.Generalizations - can't finish lesson bug

Hi, i am trying to finish this lesson now. I have properly code but even first step cannot be finished.

class Coffee extends Beverage {
	public Coffee() {

	public void addSugar(int cubes) {

		System.out.println("You added " + cubes + " sugar cubes.");


	public static void main(String[] args) {
    Coffee myOrder = new Coffee();


Trying doing one step at a time and then click Run. Don’t fill in all the steps at once.

You may have to reset the exercise to clean it up.

I tried this options yesterday and today. I wrote down everything from begining and still doesnt work.:confused:

in this statement


where did you implement the isFull() method
You have not implemented that method hence calling it will result in an error

Did you do JUST step one, and then click Run, like this:

I even “Get Code”. Still nothing.

Yes i did. Nothing like above.

You have more code there than Step 1 is expecting.

myOrder.addSugar(2) is from Step 2
myOrder.isFull() is from Step 4,

I did only 1. step but nothing happened. I reseted previous exercise, did it, and now everything goes fine. Thanks for advices :wink:


I am getting the same error.

Did you try the accepted solution yet?

Yes, I did . But even then it doesnt get accepted :frowning:

Please post a screen shot of your whole browser.

Could you reset that exercise and show it to me again, but without doing Steps 2, 3 and 4?

Its working now. But I had done the same thing previously and it wasn’t working then.

The magic touch :smile:


I’ve been having the same issue, I’m gonna try again tomorrow but I assume its just a bug.

All - As an FYI, in order to complete Instruction 1 for this lesson Coffee myOrder = new Coffee(); must be in line 14! If it is line 15 you get this error. Thanks

1 Like

This didn’t work for me…still getting the same error as those above.