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

https://code.sololearn.com/cipbGuHKODl4/?ref=app

25th Sep 2021, 1:52 AM
Vic Okeke
2 Respuestas
+ 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
25th Sep 2021, 2:34 AM
Rishi
Rishi - avatar
+ 1
Thanks, I'm still new to java though. But I'll take the corrections
25th Sep 2021, 9:48 AM
Vic Okeke