If I compile without -Xlint, I get a warning, but no error, and the program works.
warning: [unchecked] unchecked cast E newData = (E) new Object[capacity]; ^ required: E found: Object where E is a type-variable: E extends Object declared in class ArrayList
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
19 Experts available now in Live!