Remove All Items From a List
import java.applet.Applet;
import java.awt.List;
public class RemoveAllItemsFromAList extends
Applet
{
public void init()
{
List list = new List(5, true);
list.add("One");
list.add("Two");
list.add("Three");
list.add("Four");
list.add("Five");
list.add("Six");
list.add("Seven");
add(list);
list.removeAll();
}
}
No comments:
Post a Comment