Java tutorial
//package com.java2s; //License from project: Apache License public class Main { /** * toString method for values include null * @param cs * @return the string */ public static String toString(CharSequence cs) { return cs == null ? null : cs.toString(); } }