diff --git a/ch06/Strings.java b/ch06/Strings.java index ac6bc05..f8b40f0 100644 --- a/ch06/Strings.java +++ b/ch06/Strings.java @@ -38,6 +38,7 @@ public static void main(String[] args) { System.out.print("Enter a number: "); } double number = in.nextDouble(); + in.nextLine(); // read the newline // String iteration