Skip to content
Snippets Groups Projects
Commit 734afb41 authored by Goik Martin's avatar Goik Martin
Browse files

scanner -> scan

parent 3cbf17ca
No related branches found
No related tags found
No related merge requests found
......@@ -2199,7 +2199,7 @@ while (counter++ < 10) {
do {
System.out.print(
"Enter value, 0 to terminate: ");
value = scanner.nextInt();
value = scan.nextInt();
sum += value;
} while (0 != value);
System.out.println("Sum: " + sum);</programlisting><screen>Enter value, 0 to terminate: 3
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment