标签:nbsp return div null str get class amp sub
1 /** 2 * 限定指数长度为两位 3 * @return 4 */ 5 public List<BJtzsZoneComeAndCross> subStringJtzsIndex(List<BJtzsZoneComeAndCross> list){ 6 //list不为空 7 String index = ""; 8 String Jtzs = ""; 9 if(list != null && list.size() != 0){ 10 for (int i = 0; i<list.size();i++){ 11 index = list.get(i).getJtzs(); 12 if (index.length() > 4){ 13 Jtzs = index.substring(0,4); 14 } 15 list.get(i).setJtzs(Jtzs); 16 } 17 } 18 return list; 19 }
标签:nbsp return div null str get class amp sub
原文地址:https://www.cnblogs.com/assistants/p/9895555.html