java check whether the string can be parsed into int

java check whether the string can be parsed into int
refe‮‬r to:lautturi.com
/**
 * @author lautturi.com
 * Java example: check if able to parse string to int
 */
import java.util.*;

public class Lautturi {

	public static boolean isParseAble2Int(String input) {
	    try {
	        Integer.parseInt(input);
	        return true;
	    } catch (final NumberFormatException e) {
	        return false;
	    }
	}
	public static void main(String[] args) {

		String str ="1234";
		if(isParseAble2Int(str))
		{
		    System.out.println("the string can be parsed into int");
		}
	}
}

output:

the string can be parsed into int
Created Time:2017-09-19 21:24:40  Author:lautturi