

However it still makes the count value -1. once the print receipt method is called it resets both count and the boolean value so that you cannot remove an item if there is none. I get no syntax error, but when i enter the member into the lan, it comes 'you have not entered a valid number' which is from the member if statement, but he get added into the array of Lan, and his balance is still 200. so far no matter what the value of the boolean, the remove last item method still "removes" in a sense as it decreases the count of items by 1.

having the boolean be false means it will not work and come up with a printed error message. I want the remove last item method to only work if the boolean variable is true. If the int value passed is below 72, the method returns false, and if the value passed is above 72, the method returns true. This method’s return statement is of boolean type based on whether the parameter is above or below 72. Arjen identifies 29 errors and returns descriptive error information and. The first method declares the return value as boolean and the acceptable parameter as int. I am working on a simple self-checkout for school and i have no clue why this doesn't work, i have tried everything. Toomey (n.d.) developed Arjen, an extension to BlueJ (Toomey & Gjengset, 2011).
