Here you can find the source of null2String(String str)
public static String null2String(String str)
//package com.java2s; /**// www . j a va 2s . com * Converts a line of text into an array of lower case words using a * BreakIterator.wordInstance(). <p> * * This method is under the Jive Open Source Software License and was * written by Mark Imbriaco. * * @param text a String of text to convert into an array of words * @return text broken up into an array of words. */ public class Main { public static String null2String(String str) { String str2 = new String(); if (str == null) { str2 = ""; } else { str2 = str; } return str2; } }