Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

compare array with himself java

for(int i=0; i<array1.size(); i++){
  for(int j=i + 1; j<array1.size(); j++){
     if(arr.get(i) != arr.get(j)){
        ..do stuff..
     }
  }
}
 
PREVIOUS NEXT
Tagged: #compare #array #java
ADD COMMENT
Topic
Name
7+2 =