Here you can find the source of convertToNull(String chaine)
public static String convertToNull(String chaine)
//package com.java2s; //License from project: Open Source License public class Main { public static String convertToNull(String chaine) { if ("".equals(chaine) || " ".equals(chaine) || "null".equals(chaine) || "NULL".equals(chaine) || "Null".equals(chaine)) { return null; }//from w ww . j av a 2 s. com return chaine; } }