Java tutorial
//package com.java2s; public class Main { /** * @param value * @return */ public static boolean isNumeric(String value) { try { Double.parseDouble(value); return true; } catch (Exception e) { return false; } } }