I have created an Array List in Java that looks something like this:
public static ArrayList error = new ArrayList<>(); for (int x= 1
This is an ArrayList of Integer. This ArrayList can not contain a character like '['. But you can remove an Integer from it like this -
ArrayList
Integer
'['
error.remove(3);