Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    /**
     * Tests if the text is null or 0-length
     * @param text
     * @return true if text is null or 0-length
     */
    public static boolean isEmpty(CharSequence text) {
        return text == null || text.length() == 0;
    }
}