MCPcopy Create free account
hub / github.com/PrajaktaSathe/Java / find

Method find

Programs/NoDupArray.java:29–37  ·  view source on GitHub ↗
(long SearchKey)

Source from the content-addressed store, hash-verified

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

Callers 2

mainMethod · 0.95
insertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected