Java Null Value Convert null2String(String str)

Here you can find the source of null2String(String str)

Description

null String

License

LGPL

Declaration

public static String null2String(String str) 

Method Source Code

//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;
    }
}

Related

  1. null2NA(String str)
  2. Null2Space(String str)
  3. null2Str(Object obj)
  4. null2Str(String str)
  5. null2String(Object obj)
  6. null2String(String string)
  7. null2void(String str)