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));
    }//w ww .j ava2 s  .c  om

    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;
    }
}