Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.Properties; public class Main { /** * returns a P with the value of the specifed attribute of the specifed tags * * @param doc * @param strTagName * @param strAttribute * @return */ public static Properties getPropertiesFromArrayList(ArrayList<String> al) { Properties pr = new Properties(); // cycles on all of them for (int i = 0; i < al.size(); i++) { pr.setProperty(al.get(i), ""); } return pr; } }