i want to make the number array from the StringTokenizer.
if there is text line
" 2345 "
i want to get array list [2,3,4,5] . so first of all,
i made Arraylist and get from the st token using the hasMoreToken
ArrayList argument_list = new ArrayList();
while(st.hasMoreTokens()){
argument_list.add(Integer.valueOf(st.nextToken()));
}
int[] arguments = new int[argument_list.size()];
now i notice my argument_list get whole string to number "2345" not "2","3","4","5" because there is no "split word" like " , "
maybe i can divide number use the "/" but i think there is a way just split the String and get the number array even i don't know
is there way to split the token to array ?