Android String Parse isDecimal(String str)

Here you can find the source of isDecimal(String str)

Description

is Decimal

Declaration

public static boolean isDecimal(String str) 

Method Source Code

//package com.java2s;

import java.util.regex.Pattern;

public class Main {
    public static boolean isDecimal(String str) {
        return Pattern.compile("[\\d]").matcher(str).matches();
    }//from   w  w w.j  a va2 s  .  co  m
}

Related

  1. isASCII(String str)
  2. isAllDigital(String str)
  3. isDifferent(String str1, String str2)
  4. isDigits(Object o)
  5. isDigits(String s)
  6. isDouble(String str)