It’s the call to the constructor that’s the problem, it should be. ArrayList accounts = new ArrayList (); Also, you would do well to specify it like this: ArrayList accounts = new ArrayList (); Because then the compiler will prevent you from adding Integers to it (for example) rather than Strings. Share.
https://stackoverflow.com/questions/4302659/or-expected

