Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import java.util.ArrayList;

import javax.swing.ListModel;

public class Main {
    public static ArrayList listModelToList(ListModel listmodel) {
        ArrayList togo = new ArrayList();
        for (int i = 0; i < listmodel.getSize(); ++i) {
            togo.add(listmodel.getElementAt(i));
        }
        return togo;
    }
}