Here you can find the source of parseAddressLines(String[] addressLines)
public static ArrayList<String> parseAddressLines(String[] addressLines)
//package com.java2s; //License from project: Apache License import java.util.ArrayList; public class Main { public static ArrayList<String> parseAddressLines(String[] addressLines) { ArrayList<String> fields = new ArrayList<String>(); for (String addressLine : addressLines) { String[] addresses = addressLine.split(","); for (String address : addresses) { address = address.trim().replaceAll("\t", "").replaceAll("\n", "").replaceAll("\r", ""); fields.add(address);/*from ww w.ja v a 2 s .c o m*/ } } return fields; } }