Here you can find the source of null2Str(String str)
public static String null2Str(String str)
//package com.java2s; /*!/*from w w w . j av a 2 s. c o m*/ * mifmi-commons4j * https://github.com/mifmi/mifmi-commons4j * * Copyright (c) 2015 mifmi.org and other contributors * Released under the MIT license * https://opensource.org/licenses/MIT */ public class Main { public static String null2Str(String str) { return null2Str(str, ""); } public static String null2Str(String str, String nullStr) { if (str == null) { return nullStr; } return str; } }