DEV Community

Rainy Days
Rainy Days

Posted on

1 1

Stuck on my code

I have issues on my GovernmentOrUnit can anyone make it work??

Top comments (2)

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

Collapse
 
bertilmuth profile image
Bertil Muth

What are the issues?

AWS Q Developer image

Your AI Code Assistant

Automate your code reviews. Catch bugs before your coworkers. Fix security issues in your code. Built to handle large projects, Amazon Q Developer works alongside you from idea to production code.

Get started free in your IDE

👋 Kindness is contagious

DEV shines when you're signed in, unlocking a customized experience with features like dark mode!

Okay