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()); }
@Override public boolean add(E e) { // TODO Auto-generated method stub add(elementSize, e); return false; }