Quote (SoftSpeaker @ Sep 24 2013 10:53pm)
Wow I feel like an idiot.
Thanks for the explanation, it works now.
As a stylistic note:
You are declaring an array like this:
Code
String array[] = ...;
Don't do this. It's a holdover from C (which Java borrowed a lot of it's syntax from) and the more commonly accepted and easier to read form is:
Code
String[] array = ...;
Also, try not to declare your non-static fields and variables with all caps.
Code
static String[] ARRAY = ...; // good
String[] ARRAY = ...; // not good
String[] array = ...; // good
Following general styling conventions for your language makes the code easier to read for others.
edit: Here's the style guide direct from the horse's (Oracle) mouth:
http://www.oracle.com/technetwork/java/codeconv-138413.htmlThis post was edited by rockonkenshin on Sep 25 2013 10:19am