The following is first way of declaring, and it worked:
static final int N = 9;
public static int[] arr = new int[N];
This is the one that doesn't:
static final int N = 9;
int arr[]; //declaring array
arr = new int[N]; // allocating memory to array
Eclipse gave me the error reminder on the second line that I don't quite get it: Syntax error on token ";", , expected
Thank you for taking the time reading my question, any advice will be much appreciated.