[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 442d82ac66
commit b9e46ff27a
1 changed files with 0 additions and 18 deletions

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