Beispiel #1
0
 public static void main(String args[]) {
   MyArrayList<String> myList = new MyArrayList<String>();
   myList.add("1");
   myList.add("2");
   myList.add("3");
   System.out.println(myList.toSting());
   myList.remove("3");
   System.out.println(myList.toSting());
   myList.add("3");
   System.out.println(myList.toSting());
   System.out.println(myList.contains("2"));
   System.out.println(myList.isEmpty());
   myList.clear();
   System.out.println(myList.toSting());
   System.out.println(myList.isEmpty());
 }
Beispiel #2
0
 @Override
 public boolean add(E e) {
   // TODO Auto-generated method stub
   add(elementSize, e);
   return false;
 }