根据给定长度分割字符串
package test;
public class StringDem002 {
public static void main(String[] args){
String ss="abc123hello";
int[]len={3,3,5};
int index=0;
String[] s=new String[len.length];
for(int i=0;i<len.length;i++){
s[i]=ss.substring(index,len[i]+index);
index=len[i]+index;
}
for(String s1:s){
System.out.println(s1);
}
}
}