Java Null Value Convert null2NA(String str)

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

Description

null NA

License

Apache License

Declaration

public static String null2NA(String str) 

Method Source Code

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

Related

  1. null2empty(Object s)
  2. null2empty(String str)
  3. null2emptyString(String value)
  4. null2Int(Object object, int def)
  5. null2Length0(String s)
  6. Null2Space(String str)
  7. null2Str(Object obj)
  8. null2Str(String str)
  9. null2String(Object obj)