This is giving me a nullpointerexception:
public static final int[][] ARRAY = {
{ NUMBERS }
};
public static boolean method1() {
for (int[] data : ARRAY) {
int numberOne = data[0];
}
if (numberOne != numberTwo) {
method2(numberOne);
}
}
public static boolean method2(int number) {
int count = getCount(number);
/* MORE IF STATEMENTS */
}
I think it's a problem because it's trying to send a non-static number (numberOne) to another method. If it's this, how can I make "int numberOne = data[0];" static?