#Rent a car
1 messages Β· Page 1 of 1 (latest)
I uploaded your attachments as Gist. This makes them more accessible, for example to mobile users.
Can you share specifically why you feel that way?
I'd already switch over to the newer switch expressions over your switch cases.
this is what we are going thru in the course of java! @eternal schooner
I'm almost finished now with the code but the problem with maximum 7 parameters (instead of the 10 I have at row 137 and 201)
would you please help me find a way thru to cut them down? thanks π
I uploaded your attachments as Gist. This makes them more accessible, for example to mobile users.
What do you mean with: the problem ?
error on codegrade... errorCheckstyle:
More than 7 parameters (found 10).
Main.java line 137
Main.java line 201
checkstyle lol, that's the problem here
all those variables should be fields in a class
Yes! I did that before but another checkstyle requires me to only use one class
What? Hahaha.
Maybe it only limits you to one class per file instead of limiting you to one file overall?
I could imagine them banning inner classes
I received an answer from my teacher now. Ignore the 7 parameters error, you wont be marked down for it. Please donβt create new class, that is not at all allowed
Thanks for helping me tho! This might be to basic for you guys π
dont worry. we are here to help everyone - especially the beginners
it wasnt basic for us either when we started
No I love this, but so difficult to learn in the beginning! Is the code overall decent to hand in?
Did a quick jab at it
I uploaded your attachments as Gist. This makes them more accessible, for example to mobile users.
There's way more improvements to make, but that should show you how to work with an actual class
If any error occurs, your program is always expected to print an appropriate error message and
return to the menu. It should never crash, or exit on it own, unless the user selected βqβ option in the
menu.