diff --git a/.project b/.project
index 3cd55b5c..f84d3fd7 100644
--- a/.project
+++ b/.project
@@ -14,4 +14,15 @@
org.eclipse.jdt.core.javanature
+
+
+ 1730331061132
+
+ 30
+
+ org.eclipse.core.resources.regexFilterMatcher
+ node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__
+
+
+
diff --git a/src/com/jwetherell/algorithms/numbers/Integers.java b/src/com/jwetherell/algorithms/numbers/Integers.java
index fb86fd3d..958dd0f1 100644
--- a/src/com/jwetherell/algorithms/numbers/Integers.java
+++ b/src/com/jwetherell/algorithms/numbers/Integers.java
@@ -6,6 +6,13 @@
public class Integers {
+ //Moved the global variables to the top to improve readabilty
+ private static final int BILLION = 1000000000;
+ private static final int MILLION = 1000000;
+ private static final int THOUSAND = 1000;
+ private static final int HUNDRED = 100;
+ private static final int TEN = 10;
+
private static final BigDecimal ZERO = new BigDecimal(0);
private static final BigDecimal TWO = new BigDecimal(2);
@@ -137,12 +144,6 @@ public static final boolean powerOfTwoUsingBits(int numberToCheck) {
multiDigits.put(90,"ninety");
}
- private static final int BILLION = 1000000000;
- private static final int MILLION = 1000000;
- private static final int THOUSAND = 1000;
- private static final int HUNDRED = 100;
- private static final int TEN = 10;
-
private static final String handleUnderOneThousand(int number) {
StringBuilder builder = new StringBuilder();
int x = number;