Here you can find the source of null2NA(String str)
public static String null2NA(String str)
//package com.java2s; //License from project: Apache License public class Main { public static String null2NA(String str) { return null != str ? str : "NA"; }//from ww w . java 2s .co m }