//MGD swarm-support Feb.22, 2001 import swarm.Globals; import swarm.simtools.NSelectImpl; import java.util.LinkedList; import java.util.List; import java.util.ListIterator; public class TestNSelect { static void main (String args[]) { Globals.env.initSwarm ("TestNSelect", "bug-swarm@swarm.org", "0.0", args); List aList = new LinkedList (); List bList = new LinkedList (); for (int i = 0; i < 100; i++) aList.add (new Integer (i)); new NSelectImpl ().select$from$into (5, aList, bList); ListIterator index = bList.listIterator (); while (index.hasNext ()) { System.out.println (index.next ()); } } }