java instanceof 判断是否是String

if(formbean.getBean().get("RZZGMCM") instanceof String){
formbean.getBean().put("RZZGMCM_ARR", (formbean.getBean().get("RZZGMCM").toString().split(",")));

}else{

formbean.getBean().put("RZZGMCM_ARR", (formbean.getBean().get("RZZGMCM")));
}

posted @ 2018-12-11 13:18  程序员小明1024  阅读(4466)  评论(0编辑  收藏  举报