Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 19th, 2011  |  syntax: Java  |  size: 0.70 KB  |  views: 36  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. int[][] goodEnd = { {},{},{},{},{},{},{},{},{},{},{},{},{}};
  2.  
  3. loops{ //... p1Counter is a variable for a for loop
  4. int counterPnt = 0;
  5.         loops{
  6.                 if(goodEnd[plCounter].Array.asList().Arrays.contains(currentPnt)){
  7.                                        for(arrayCounter = 0; arrayCounter < 100; arrayCounter ++){     
  8.                                           pathsTotal[arrayCounter] += paths[arrayCounter];
  9.                                        }
  10.                                    }
  11.         }
  12. }
  13.  
  14.  
  15.  
  16. //Method version
  17. public static boolean arrayContain(byte[] goodEnd, int p1Counter, int currentPnt){
  18.         for (int n = 0; n <=goodEnd.length; n++){
  19.         if (goodEnd[p1Counter][n] == currentPnt){
  20.             return true;
  21.         }else {return false;}
  22.     }
  23.