Java - Write code to check if a string is Not Empty

Requirements

Write code to check if a string is Not Empty

Demo

//package com.book2s;

public class Main {
    public static void main(String[] argv) {
        String raw = "book2s.com";
        System.out.println(isNotEmpty(raw));
    }/*from   www . j a  v  a 2 s .  com*/

    public static boolean isNotEmpty(String raw) {
        return !isEmpty(raw);
    }

    public static boolean isEmpty(String raw) {
        if (null == raw || raw.trim().length() == 0
                || "null".equals(raw.trim())) {
            return true;
        }
        return false;
    }
}