List<String> skill = new ArrayList<String>(); List<String> result = new ArrayList<String>(); skill.add("1:123 456"); for (String st : skill) { String[] array = st.split("[:]"); result.add(array[1]); } System.out.println(result);
for (String st : skill) { String[] array = st.split(":"); result.Add(array[1].split("\\s+")); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)