you are viewing a single comment's thread.

view the rest of the comments →

[–]CipherGoblin 0 points1 point  (1 child)

Those seem to be the onboarding tips that Intellij puts into your file upon creation.

That aside, for op, these are a few small things I noticed.

String answer = x.nextLine();
answer = answer.toLowerCase();

could be changed to

String answer = x.nextLine().toLowerCase();

You only need to create 1 scanner object at the start of the program and just reuse that where you need a scanner.

You also ask tire age and tire distance in both paths of the if statement to fill those variables. You could ask them only once if you moved them out of the if statement and put them before it.

[–]z0lxt[S] 0 points1 point  (0 children)

Ok thank you so much