I just started java programming on BlueJ at University and some of the hard parts are done for us so we can do the easier bits.The project is to create a bar chart with a label. So on the test bit there is this block of code and it has an error which I don't know how to fix, The error is "bar.getLabel()" and BlueJ states "cannot find symbol - method getLabel()".
Bar bar = new Bar("My Bar", 50);
assertEquals(bar.getLabel().getText(), "My Bar");
assertEquals(bar.getValue(), 0);
assertEquals(bar.getView().getWidth(), 0);
assertEquals(bar.getView().getHeight(), 50);