I am doing a car insurance program in java and i need to understand this error. the program goes like this. it depend on the driver's age and how many accidents he had. from 1 to 5 it have difference charges with additional surcharge an for 6 you dont qualify for the insurance.
am trying to implement an if statement to determine the drivers age but getting a error. it goes as this
the error that I am getting is: illegal start of a statement and also to create a class in numofaccidents in package carInsurance.
how can i fix this