[BAEL-3518] Removed the CheckIntegerInput because its removed from the article (#8228)

This commit is contained in:
Martin van Wingerden
2019-11-24 06:15:36 +01:00
committed by KevinGilmore
parent fb061167da
commit 7bbd5859b0

View File

@@ -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");
}
}
}
}