We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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