Here you can find the source of null2Length0(String s)
public static String null2Length0(String s)
//package com.java2s; //License from project: Apache License public class Main { public static String null2Length0(String s) { return s == null ? "" : s; }/*from ww w. j av a 2 s .com*/ }