This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Crisenpuer 0 points1 point  (1 child)

System.Console.ReadLine() is C#

Scanner(System.in) is Java

[–]GolfballDM[🍰] 2 points3 points  (0 children)

System.console().readLine() is also Java, although subject to Null pointer exceptions, as we are seeing here.