给字符串数组赋值:
新建字符串数组:String [] orgList = null;
String orgString = (String)queryCondition.get("orgList");
将字符串赋给数组:
if(orgString.indexOf(",")<0){
orgList = new String[]{orgString};
}else{
orgList = orgString.split(",");
}
判断该字符串是否为多个值组成;
给字符串数组赋值:
最新推荐文章于 2024-07-23 09:04:36 发布