Create a can store integer, string class List, its maximum capacity is 100, the List class consists of the following members:
(1) private constant field Max, used to represent the maximum number of elements of storage;
(2) private field num, used to represent the actual number of elements;
(3) private listArray type object array, used to store the integer, string data.
(4) public method add (object obj) for the element added to the end listArray obj;
(5) public methods delete (int pos), used to delete the location for pos element;
6. Public methods get (int pos), used to get position pos element;
All landowners public method getnum (), is used to get the actual number of elements;
Today public methods disp (), its function is to display all elements,
Please define class List and tested according to the requirement,
This topic how to do?