In Java, if we want to read an user input from the console, we can do the following.
Scanner scn = new Scanner (System.in); int x; x = scn.nextInt(); //Receive
Is it equivalent to Java's scanner.nextInt() when I use int a = int.Parse(Console.ReadLine()); to receive int inputs?
Yes. Java's Scanner.nextInt() throws an exception when no integer input has been received, as does .NET's int.Parse(Console.ReadLine()).
int.Parse(Console.ReadLine())