Android String Char Get isAllCharDigit(String str)

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

Description

is All Char Digit

Declaration

public static boolean isAllCharDigit(String str) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isAllCharDigit(String str) {
        int length = str.length();
        if (length == 0) {
            return false;
        }//from   w  ww.  j av a 2s.c om
        for (int i = 0; i < length; i++) {
            if (!Character.isDigit(str.charAt(i))) {
                return false;
            }
        }
        return true;
    }
}

Related

  1. charSubString(String str, int charLen)
  2. getCharLength(String str)
  3. getCharNum(String str, char ch)
  4. getFirstChar(String ch)
  5. isValidChar(String strInput)
  6. isAllWhitespace(CharSequence str)