Here you can find the source of isNumber(String value)
Parameter | Description |
---|---|
value | value expected |
public static boolean isNumber(String value)
//package com.java2s; //License from project: BSD License import java.util.regex.Pattern; public class Main { /**/*from w w w . ja va 2 s .c o m*/ * Check if the value is a digit * @param value value expected * @return the test result */ public static boolean isNumber(String value) { return Pattern.matches("[0-9].*", value); } }