I've seen a few examples on this site where people working with JTables declare the following:
List<TableColumn> columns = new ArrayList<TableColumn>();
I'd like to do this too, as my goal is to create a list that will store columns that are hidden from the user (I need the list so that I can un-hide the columns later if need be).
However, when I try the above eclipse tells me:
The type List is not generic; it cannot be parameterized with arguments
Can someone tell me how to fix this? Or suggest another option?