Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static Boolean isNotNull(String str) {
        if (str == null || str == "" || str.trim().length() <= 0) {
            return false;
        } else
            return true;
    }

    public static Boolean isNotNull(Boolean bln) {
        if (bln == null || bln.equals("") || bln.equals(" ")) {
            return false;
        } else
            return true;
    }

    public static Boolean isNotNull(Long lng) {
        if (lng == null || lng.equals("") || lng.equals(" ")) {
            return false;
        } else
            return true;
    }
}