Skip to content

Commit

Permalink
不存在ArrayOperate构造方法
Browse files Browse the repository at this point in the history
  • Loading branch information
Gsealy committed Feb 19, 2019
1 parent 4dc94cf commit 319597a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions java/05_array/Array.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* 2)数组中的数据是int类型的;
*
* Author: Zheng
* modify: xing
* modify: xing, Gsealy
*/
public class Array {
//定义整型数据data保存数据
Expand Down Expand Up @@ -71,7 +71,6 @@ public boolean delete(int index){
}
this.data = arr;*/


--count;
return true;
}
Expand All @@ -83,7 +82,7 @@ public void printAll() {
}

public static void main(String[] args) {
ArrayOperate array = new ArrayOperate(5);
Array array = new Array(5);
array.printAll();
array.insert(0, 3);
array.insert(0, 4);
Expand All @@ -93,6 +92,4 @@ public static void main(String[] args) {
//array.insert(3, 11);
array.printAll();
}


}

0 comments on commit 319597a

Please sign in to comment.