Java how to check input type

Java how to check input type
r‮:ot refe‬lautturi.com
/**
 * @author lautturi.com 
 * Java example: checking input in java
 */

import java.util.*;

public class Lautturi {

	public static void main(String[] args) {
		System.out.println("Enter an integer:");
		String input;
		int value;
		do {
			Scanner one = new Scanner(System.in);

			input = one.nextLine();

			try {
				value = Integer.parseInt(input);
				break;
			} catch (Exception e) {
				System.out.println("Couldn't parse input, please try again");
			}
		} while (true);
		System.out.println("The integer :" + value);
	}
}

output:

Enter an integer:
123
The integer :123
Created Time:2017-10-01 00:24:36  Author:lautturi