From 63f31450f774c77f037b583c8775e469ff04d6ee Mon Sep 17 00:00:00 2001 From: David Yorke <52086002+davidyorke@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:28:52 -0600 Subject: [PATCH] "reader.nextline()" should be scanner.nextline() Fix very confusing type that references none existent class "Reader" --- data/part-1/3-reading-input.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/part-1/3-reading-input.md b/data/part-1/3-reading-input.md index 979f10289..7720fa070 100644 --- a/data/part-1/3-reading-input.md +++ b/data/part-1/3-reading-input.md @@ -270,7 +270,7 @@ NB! When using the `System.out.println` command, do not pass in the string "Ada ## Reading Strings -The `reader.nextLine();` command reads the user's input and *returns* a string. If we then want to use the string in the program, it must be saved to a string variable -- `String message = scanner.nextLine();`. A value saved to a variable can be used repeatedly. In the example below, the user input is printed twice. +The `scanner.nextLine();` command reads the user's input and *returns* a string. If we then want to use the string in the program, it must be saved to a string variable -- `String message = scanner.nextLine();`. A value saved to a variable can be used repeatedly. In the example below, the user input is printed twice. ```java //Introduce the Scanner tool used for reading