Here you can find the source of null2Str(Object obj)
public static String null2Str(Object obj)
//package com.java2s; //License from project: Open Source License public class Main { public static String null2Str(Object obj) { if ((obj == null) || (obj.equals("null")) || (obj.equals(""))) { return ""; } else {/*from www .j av a 2s .c o m*/ return obj.toString().trim(); } } }