package com.ppmath.mathcore.tool;
import org.apache.commons.lang.StringUtils;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class PageStringUtil {
/**
* 字符串转数组
* */
public static List<String> relieveToString(String str){
if(str != null){
String strip = StringUtils.strip(str,"[]");
if(strip.length() == 0){
return new ArrayList<>();
}
String[] split = strip.split(",");
if(split != null){
for(int i=0;i<split.length;i++){
split[i] = split[i].replace(" ", "");
}
}
return split == null ? null : Arrays.asList(split);
}else {
return new ArrayList<>();
}
}
}
02-03
2354
03-16
11-02
1252