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 {
    public static void showList(List<? extends Object> lst) {
        Iterator<? extends Object> it = lst.iterator();
        while (it.hasNext()) {
            System.out.println(it.next());
        }
    }
}