diff --git a/mattrixwv/Algorithms.class b/mattrixwv/Algorithms.class index b3432af..d42d294 100644 Binary files a/mattrixwv/Algorithms.class and b/mattrixwv/Algorithms.class differ diff --git a/mattrixwv/Algorithms.java b/mattrixwv/Algorithms.java index eca1074..037300d 100644 --- a/mattrixwv/Algorithms.java +++ b/mattrixwv/Algorithms.java @@ -734,7 +734,7 @@ public class Algorithms{ //Look through every element in the array, looing for the key element for(Integer num : ary){ //If there is an element in the array that is the same as key return true - if(num == key){ + if(num.equals(key)){ return true; } } @@ -745,7 +745,7 @@ public class Algorithms{ //Look through every element in the array, looing for the key element for(Long num : ary){ //If there is an element in the array that is the same as key return true - if(num == key){ + if(num.equals(key)){ return true; } } @@ -756,7 +756,7 @@ public class Algorithms{ //Look through every element in the array, looing for the key element for(BigInteger num : ary){ //If there is an element in the array that is the same as key return true - if(num == key){ + if(num.equals(key)){ return true; } }