Skip to content
← Back to Community
Text Adventure
Profile icon
TheMaster7661

Hi, I have a text adventure code that I made, but it gives me an error and I don't know why. Can you please help me out?

Voters
Profile icon
TheMaster7661
Comments
hotnewtop
Profile icon
Coder100

oh ok found it, why do you have two import java.util.*? >:(

ohhh because you pasted in the code...

well next time make sure your code is good.

working repl

I also removed a lot of useless arguments and some naming things as well :)

Profile icon
Coder100

May I ask why your class is lowercased???
That is not ok, make sure it is:
Driver.java

import java.util.*; public class Driver {
Profile icon
TheMaster7661

@Coder100
Well, It's just something I did. Are you saying that making it uppercase would be better?

Profile icon
Coder100
Profile icon
Coder100

it's convention, and it will help with distinguishing between classes and variables

@NoahJospeh