Ciao a tutti. Utilizzo eclipse come IDE. Volevo sapere se qualcuno sa spiegarmi questo warning.
codice:
Vector filesName = new Vector<String>();
String stringa = "Ciao forum di html!";
filesName.addElement(stringa );
mi da questo warning
codice:
Type safety: The method addElement(Object) belongs to the raw type Vector. References to generic type Vector<E> should be parameterized
Cosa vuol dire "References to generic type Vector<E> should be parameterized"?
Grazie
----------------------------------------------
L'oggetto Vector va inizializzato così:
codice:
Vector<String> filesName = new Vector<String>();
-----------------------------------------------
Scusate il disturbo.