Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int[][] goodEnd = { {},{},{},{},{},{},{},{},{},{},{},{},{}};
- loops{ //... p1Counter is a variable for a for loop
- int counterPnt = 0;
- loops{
- if(goodEnd[plCounter].Array.asList().Arrays.contains(currentPnt)){
- for(arrayCounter = 0; arrayCounter < 100; arrayCounter ++){
- pathsTotal[arrayCounter] += paths[arrayCounter];
- }
- }
- }
- }
- //Method version
- public static boolean arrayContain(byte[] goodEnd, int p1Counter, int currentPnt){
- for (int n = 0; n <=goodEnd.length; n++){
- if (goodEnd[p1Counter][n] == currentPnt){
- return true;
- }else {return false;}
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement