I have created an Array List in Java that looks something like this:
public static ArrayList error = new ArrayList<>();
for (int x= 1
The brackets you see are just an automatic way to display a List in JAVA (when using System.out.println(list);
for example.
If you do not want them to show when showing it, you can create a custom method :
public void showList(List listInt)
{
for(int el : listInt)
{
System.out.print(el + ", ");
}
}
Then adjust this code to show this according to your liking !