Advertisement
killerbng

Can't find error

Sep 15th, 2016
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.59 KB | None | 0 0
  1. if(checkExist(_id, temp)){
  2.     if(Settings.DebugMode) Log.i(Settings.MAKE_DECK, "ID already exist, skipping ID# " + String.valueOf(_id));
  3. }else{
  4.     ArrayList<String> al = new ArrayList<>(
  5.             Arrays.asList(
  6.                     _id, _ru, _pro, _en, _audio, _type, _gender,
  7.                     _category, _date, _active, _trouble,
  8.                     _correct, _incorrect
  9.             )
  10.     );
  11.     //Log.i("TEST", _id);
  12.     temp.add(al);
  13.     i++;
  14. }
  15.  
  16. //
  17. // checkExist()
  18. //
  19. public static boolean checkExist(String num, ArrayList<ArrayList<String>> temp){
  20.     for(ArrayList<String> a : temp){
  21.         if(a.get(0).equals(num)){
  22.             return true;
  23.         }
  24.     }
  25.     return false;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement