Java Null Value Convert null2empty(String str)

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

Description

nullempty

License

Open Source License

Declaration

public static String null2empty(String str) 

Method Source Code

//package com.java2s;

public class Main {
    public static String null2empty(String str) {
        return str == null ? "" : str;
    }//from   w  w w.  jav  a2 s  . com
}

Related

  1. null2dots(Object s)
  2. null2Double(Object s)
  3. null2Double(Object s, double defValue)
  4. null2Empty(Object obj)
  5. null2empty(Object s)
  6. null2emptyString(String value)
  7. null2Int(Object object, int def)
  8. null2Length0(String s)
  9. null2NA(String str)