ArrayList<Integer> myList = new ArrayList<Integer>();
...are not totally true in "old java", the declaration of the generic object should use the generic args, but... not the instantiation. Should be like this:
ArrayList<Integer> myList = new ArrayList<>();
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This lines like this...
...are not totally true in "old java", the declaration of the generic object should use the generic args, but... not the instantiation. Should be like this: