,
ArrayList accounts = new ArrayList();
In addition, it would be useful for you to specify it like this:
ArrayList<String> accounts = new ArrayList<String>();
Because then the compiler will stop you from adding integers to it (for example), not strings.
daveb source
share