diff --git a/src/main/java/mattrixwv/Algorithms.java b/src/main/java/mattrixwv/Algorithms.java index 841d99d..9531b3c 100644 --- a/src/main/java/mattrixwv/Algorithms.java +++ b/src/main/java/mattrixwv/Algorithms.java @@ -820,8 +820,7 @@ public class Algorithms{ } //If there are more possible recurses, recurse with the current permutation else{ - ArrayList temp = new ArrayList(); - temp = getPermutations(master, num + 1); + ArrayList temp = getPermutations(master, num + 1); perms.addAll(temp); //You need to swap the current letter with every possible letter after it //The ones needed to swap before will happen automatically when the function recurses