Ask coding questions

← Back to all posts
compiler exit status 1
ZhiCai (6)

i don't know what it means. how do i fix it

SixBeeps (5037)

Rename the class from tax to Main for your program to run.

Bookie0 (5939)


compiler exit status 1 means that there is an error.
I dont know Javascript, but the error messsage says this: error: class TaxCalculator is public, should be declared in a file named
public class TaxCalculator {
1 error
compiler exit status 1

and if you look at the message it says that the class TaxCalculator is public, and should be declared in a file called, so maybe try that ;)