0
I'm trying to compile a program to calculate the salaries of two workers, please who can tell me where I went wrong here
2 ответов
+ 5
Vic Okeke your code has multiple errors.
First, you can't nest functions inside one another.
Second, it's "int" and not "Int"
Third, I made the class " Worker" a seperate class to not get the error " non static variable this can't be referred from a static context"
https://code.sololearn.com/c5sX71p303oa/?ref=app
+ 1
Thanks, I'm still new to java though. But I'll take the corrections