+ 2
Java Console error
Can anyone please explain why this code is throwing a NullPointerException? https://code.sololearn.com/c9ZxBC4OiVvP/#java I think I know, it's because when I called System.console() the console couldn't be initialized but why is that?
2 ответов
+ 2
Martin Taylor ooh I see because there's no console attached makes sense. Thank you for the clear answer!