Java tutorial
//package com.java2s; public class Main { public static boolean isNotNull(String txt) { return txt != null && txt.trim().length() > 0; } }