遍历大法就能搞定! // 打印顺序表public void display() { for (int i = 0; i < this.size; i++) { System.out.print(this.elem[i] + " "); } System.out.println();}