Scanner in = new Scanner(System.in); int N = in.nextInt(); As I understand it, the first line creates an in instance of the Scanner class (the default constructor is used). And in the second integer variable N using the nextInt() method, which reads the first number entered from the keyboard, the value we entered is assigned. Did I understand this correctly? And what in the first case does the entry in brackets in the first line mean?