8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent af3f177 commit 6b758bdCopy full SHA for 6b758bd
ch06/Strings.java
@@ -38,6 +38,7 @@ public static void main(String[] args) {
38
System.out.print("Enter a number: ");
39
}
40
double number = in.nextDouble();
41
+ in.nextLine(); // read the newline
42
43
// String iteration
44
0 commit comments