Android String Char Get isAllWhitespace(CharSequence str)

Here you can find the source of isAllWhitespace(CharSequence str)

Description

is All Whitespace

Declaration

public static boolean isAllWhitespace(CharSequence str) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isAllWhitespace(CharSequence str) {
        for (int i = 0; i < str.length(); i++) {
            if (!Character.isWhitespace(str.charAt(i))) {
                return false;
            }// ww w .  j  a v  a 2  s .c o m
        }
        return true;
    }
}

Related

  1. getCharLength(String str)
  2. getCharNum(String str, char ch)
  3. getFirstChar(String ch)
  4. isValidChar(String strInput)
  5. isAllCharDigit(String str)