(long SearchKey)
| 27 | |
| 28 | //search value |
| 29 | public boolean find(long SearchKey) {//[9,7,6,2,_,_] |
| 30 | |
| 31 | for(int i=0;i<this.nElements;i++){ |
| 32 | if(this.a[i]==SearchKey){ |
| 33 | return true; |
| 34 | } |
| 35 | } |
| 36 | return false; |
| 37 | } |
| 38 | |
| 39 | public void insert(long value) {//put element into array |
| 40 |