Can't add elements to an arraylist?

better ArrayList<Object> objects = new ArrayList();

thus you can tell the Arraylist its type

2 Likes