遍历大法就能搞定!

    1. // 打印顺序表
    2. public void display() {
    3. for (int i = 0; i < this.size; i++) {
    4. System.out.print(this.elem[i] + " ");
    5. }
    6. System.out.println();
    7. }