Android String Parse isDouble(String str)

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

Description

is Double

Declaration

public static boolean isDouble(String str) 

Method Source Code

//package com.java2s;

import java.util.regex.Pattern;

public class Main {

    public static boolean isDouble(String str) {
        Pattern pattern = Pattern.compile("^[-\\+]?[.\\d]*$");
        return pattern.matcher(str).matches();
    }/*from   ww w  .  j a  v a2s.c  om*/
}

Related

  1. isAllDigital(String str)
  2. isDecimal(String str)
  3. isDifferent(String str1, String str2)
  4. isDigits(Object o)
  5. isDigits(String s)
  6. isIDCard(String str)
  7. isInteger(String input)
  8. isInteger(String str)
  9. isIntegral(String str)