Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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