Android String Empty Check isNotEmpty(String s)

Here you can find the source of isNotEmpty(String s)

Description

is Not Empty

Declaration

public static boolean isNotEmpty(String s) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isNotEmpty(String s) {
        return (s != null && s.trim().length() > 0);
    }/*from  www . ja  va2 s  .  c  o m*/
}

Related

  1. isEmpty(String s)
  2. isEmpty(String value)
  3. isNotEmpty(String value)
  4. isEmptyOrNull(String string)
  5. isEmpty(String input)
  6. isEmpty(String string)
  7. isEmptyString(String s)
  8. isEmptyOrNull(String str)
  9. toNullIfEmptyOrWhitespace(String string)