2
TYML
8y

Sooo console doesn't work in eclipse?!?
#late #java #console sysout

Comments
  • 1
  • 1
    @psuso sorry I wasn't clear. I meant using Console to take user input. My mistake 😩
  • 1
    @varEnigmatic I'm pretty sure you can type in there and it'll work. It's been a long while since I've done it, but I'm pretty sure you're able to.
  • 0
    I get a null pointer error @psudo
  • 1
    @varEnigmatic I would have to see what's going on in your code to try and figure what's up with the NPE, but because you're not just hanging waiting for input means that it's at least capturing the return key.
  • 0
    The error log? @psudo
  • 1
    @varEnigmatic The NPE is because you're trying to access the variable before it's been given a value. I bet if you ran it from cmd you'd get the same stack trace.
Add Comment