Here you can find the source of parseAccessNumber(String line)
public static List<String> parseAccessNumber(String line)
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.List; public class Main { public static List<String> parseAccessNumber(String line) { List<String> result = new ArrayList<String>(); String[] subids = line.split("\\s"); for (String subid : subids) { subid = subid.trim();/*ww w .jav a 2 s . c om*/ if (subid.endsWith(",")) { subid = subid.substring(0, subid.length() - 1); } if (subid.length() > 1) { result.add(subid.trim()); } } return result; } }