Android String to Number Convert isNumeric(String str)

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

Description

is Numeric

Declaration

public static boolean isNumeric(String str) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isNumeric(String str) {
        final String number = "0123456789";
        for (int i = 0; i < str.length(); i++) {
            if (number.indexOf(str.charAt(i)) == -1) {
                return false;
            }// w  ww  . j  a  v  a 2  s  .  com
        }
        return true;
    }
}

Related

  1. isNumeric(String str)
  2. isNumeric(String str)
  3. isNumeric(String str)
  4. isNumeric(String string)