Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.Iterator;
import java.util.List;

public class Main {
    /**
     * Debug method. Prints to System.out each Element in the given list.
     * @param l1 the list of elements to print.
     */
    public static void printElements(List l1) {

        for (Iterator i = l1.iterator(); i.hasNext();) {
            Object o = i.next();
            //if(o instanceof Element)Logger.getInstance().log("l1: "+serialiseElement((Element)o));
        }
    }
}