
Mher Allahverdi
1,686 Points/jshell gives me an error right off the bat when I try /open PezDispenser.java
There's a screenshot of my code. Not sure what's going wrong.
1 Answer

Sara Lopes
1,556 PointsHi
This is because your code still has the setter method from last exercise. Because your field characterName is marked as final, it does not allow you to compile because the setter method would try to change this value, which is not allowed.
Thank you
kevin hudson
Pro Student 9,645 Pointskevin hudson
Pro Student 9,645 PointsHi, whats your error message please