13/13 step 2 need help

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>

https://www.codecademy.com/en/courses/learn-java/lessons/object-oriented-programming/exercises/generalizations-oop-java
<In what way does your code behave incorrectly? Include ALL error messages.>
I am completely lost and cannot find how to do this in the previous steps.

```

class Coffee {

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();
int 2 = addSurgar.myOrder();

}

}

<do not remove the three backticks above>

@anikin3562,
Your

int 2 = addSurgar.myOrder();

should be

 myOrder.addSugar(2);

Do a google search
== the Book ==
java class definition site:oracle.com
java creating object site:oracle.com

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.