I have created an Array List in Java that looks something like this:
public static ArrayList error = new ArrayList<>(); for (int x= 1
There are not brackets inside your list. This is just the way Java prints a list by default.
If you want to print the content of your list, you can something like this
for (Integer error : errors) { System.out.format("%d ", error); }