Answers for "compare array with himself java"

0

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..
     }
  }
}
Posted by: Guest on March-23-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language