java - Generic List of Array -
How to delete:
type protection: type list [] expression Uncontrolled requires compiler warning in the following expression:
list & lt; Object & gt; [
] ArrayOfList = new listing [10];
Using Apack's only way @SuppressWarnings ("uncheck") Is
. At least if you want to avoid the warning of the raw type in response to Matthew.
But you should consider your design again. An array of lists? Is it really necessary? Why not list the lists? And if it becomes very complicated (list of inventory map list ...), use custom data types. This actually makes the code more readable.
And as an unrelated side note: You list & lt; Object & gt; [] Must specify arrayOfList
Brackets are part of type, not variable
Comments
Post a Comment