Java XML Parse String parseAccessNumber(String line)

Here you can find the source of parseAccessNumber(String line)

Description

parse Access Number

License

Open Source License

Declaration

public static List<String> parseAccessNumber(String line) 

Method Source Code

//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;
    }
}

Related

  1. parse(String xml)
  2. parse(String xml)
  3. parse(String xml)
  4. parse(String xml)
  5. parse(String xml)
  6. parseAddressLines(String[] addressLines)
  7. parseArg(String arg)
  8. parseArgs(String text)
  9. parseArgs(String[] args)