int len = objs.length; String outStr = "Length:"+len+"CONTENT:"; for (int i =0;i<len;i++){ List list=objs[i].getInstanceProperties(); Iterator it=list.listIterator(); while(it.hasNext()){ Property pro=(Property)it.next(); outStr=outStr+pro.getName()+"-"+objs[i].get(pro)+","; } outStr=outStr+"|"; }