From b9e46ff27aa15a0a221fe4bad0e275b135dccdc1 Mon Sep 17 00:00:00 2001 From: Martin van Wingerden Date: Sun, 24 Nov 2019 06:15:36 +0100 Subject: [PATCH] [BAEL-3518] Removed the CheckIntegerInput because its removed from the article (#8228) --- .../baeldung/isnumeric/CheckIntegerInput.java | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 core-java-modules/core-java-string-operations/src/main/java/com/baeldung/isnumeric/CheckIntegerInput.java diff --git a/core-java-modules/core-java-string-operations/src/main/java/com/baeldung/isnumeric/CheckIntegerInput.java b/core-java-modules/core-java-string-operations/src/main/java/com/baeldung/isnumeric/CheckIntegerInput.java deleted file mode 100644 index 6c08615c74..0000000000 --- a/core-java-modules/core-java-string-operations/src/main/java/com/baeldung/isnumeric/CheckIntegerInput.java +++ /dev/null @@ -1,18 +0,0 @@ -package com.baeldung.isnumeric; - -import java.util.Scanner; - -public class CheckIntegerInput { - - public static void main(String[] args) { - try (Scanner scanner = new Scanner(System.in)) { - System.out.println("Enter an integer : "); - - if (scanner.hasNextInt()) { - System.out.println("You entered : " + scanner.nextInt()); - } else { - System.out.println("The input is not an integer"); - } - } - } -} \ No newline at end of file