Here you can find the source of objToString(Object[] obj)
public static String[] objToString(Object[] obj)
//package com.java2s; //License from project: Apache License public class Main { public static String[] objToString(Object[] obj) { if (obj == null) return null; String[] str = new String[obj.length]; for (int i = 0; i < obj.length; i++) { str[i] = obj[i].toString();//from w ww . j a va2s. c o m } return str; } public static String objToString(Object obj) { if (obj == null) return ""; else return ((String) obj).trim(); } }