I keep compiler exit status 1
Just begging with Java, experimenting with user input via keyboard, but the code isn't getting past compiling, any idea why?
Coder100
ok, your class is named wrong. Your file name is called Main
so your class should follow suit.
public class Main {
Coder100
exiting status is not an error, that's an action performed by java because of an error.
SixBeeps
It should be main(String[] args) and not main{String[] args}
sprintokflash
@SixBeeps I dont see any difference?
sprintokflash
Oh wait nvm
sprintokflash
@SixBeeps Ur right, im an idiot thx
sprintokflash
@SixBeeps I changed that, but it is still producing the same error
@sprintokflash Hi Gingrbred,
I think on line
2
, you have entered your class name asUserInput
.To solve the error you have to change your second line code to this:-
I.E Main
That's it.
Thanks!
Hope this helps