Java tutorial
//package com.java2s; public class Main { public static String objectString(Object value) { if (value == null || "".equals(value)) { return ""; } else { return value.toString(); } } }