Android String to Number Convert isNumericOnly(String pString)

Here you can find the source of isNumericOnly(String pString)

Description

is Numeric Only

Declaration

public static boolean isNumericOnly(String pString) 

Method Source Code

//package com.java2s;
import java.util.regex.Pattern;

public class Main {
    public static boolean isNumericOnly(String pString) {
        return Pattern.matches("[0-9[-\\s]]+", pString);
    }/*from w w  w .  j  a  va2 s  .c om*/
}

Related

  1. isNumeric(String str)
  2. isNumeric(String str)
  3. isNumeric(String str)
  4. isNumeric(String string)
  5. isLetterNumeric(String s)
  6. isNumeric(String str)
  7. containsNonNumericCharacters(String rawInput)
  8. isNumber(String str)
  9. isNumberLetter(String str)