DEV Community

Discussion on: Stuck on my code

Collapse
 
kzwisler1 profile image
Kzwisler1 • Edited

In your GovernmentOrgUnit class, you have a method at the bottom,
public void setClearance(int )
your error is because you do not have a parameter declared. It needs to look like this:
public void setClearance(int a)
or
public void setClearance()
if you do not intend to pass anything