plz help me in writing the logic with out using the util packege classes in java? plz give the code for this program in linkedlists way (not by using util package classees)
import java.util.*;
public class arr1
{
public static void main(string args[])
{
list l1=new ArrayList(); // or list l1=new linkedlist();
l1.add("1");
l1.add("2");
l1.add("3");
Iterate i1=l1.iterate();
while(i1.hasNext())
{
system.out.println(i1.next());
}
}