SHARE
TWEET

Untitled

a guest May 20th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void removeDuplicates( ArrayList<String> list ){
  2.     for(int i = 0; i < list.size(); i++){
  3.         for(int j = i + 1; j < list.size(); j++) {
  4.             if(list.get(i) == list.get(j)) {
  5.                 j--;
  6.                 list.remove(i);
  7.             }
  8.         }
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top