数据类型之间的相互转换
作者:互联网
1.将list数组转化成string数组
String[] filePath = list.toArray(new String[list.size()]);
2.将字符串以某个符号分割转化成string数组
String[] pageChoose = pagechoose.split(",");
3.是否包含某个值,包含为ture,否则相反
boolean status = pagechoose.contains("-");
4.获得某子串之前的值
StringUtils.substringBeforeLast(pagechoose,decollator)
4.获得某子串之后的值
StringUtils.substringAfterLast(pagechoose,decollator)
标签:pagechoose,转换,String,数据类型,list,数组,相互,decollator,string 来源: https://blog.csdn.net/qq_51216500/article/details/119350749