Java tutorial
//package com.java2s; public class Main { public static boolean isAvailable(String temp) { boolean b = true; if (temp == null || temp.trim().equals("")) { b = false; } return b; } }