Advertisement
Guest User

Untitled

a guest
Nov 19th, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  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.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement