I've tried all you hints and tips guys but it does not let me pass on this lesson


#1

HI!

I've tried all you hints and tips guys but it does not let me pass on this lesson. Here is my code can you notice any mistake please?

Thanks your help!

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();
myOrder.addSugar(2);
myOrder.isFull();

}
}


13/13
#2

If u enter all the instructions at a time and run it then u will be getting an error.
FIrst enter the code given in 1st instruction and click run and the error will not come
then enter the code given in the remaining instructions then your problem will be solved


#3

Thank you so much! It worked! :slight_smile:


#4

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