Java - Write code to check if a string has At Least N Characters

Requirements

Write code to has At Least N Characters

Demo

//package com.book2s;

public class Main {
    public static void main(String[] argv) {
        String source = "book2s.com";
        int minimumLength = 42;
        System.out.println(hasAtLeastNCharacters(source, minimumLength));
    }//from   w ww.j  a va2s .  c  om

    public static boolean hasAtLeastNCharacters(String source,
            int minimumLength) {
        boolean result = true;
        if (isEmpty(source) || source.length() < minimumLength) {
            result = false;
        }
        return result;
    }

    public static boolean isEmpty(String str) {
        return (str == null || str.length() == 0);
    }

    public static int length(String source) {
        int result = 0;
        if (isNotEmpty(source)) {
            result = source.length();
        }
        return result;
    }

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