What class functions like list of strings? Enumeration is not good because it is not possible to access to string with index?? Thanks
Printable View
What class functions like list of strings? Enumeration is not good because it is not possible to access to string with index?? Thanks
JosAH, Thanks..One question, is it needed addition <String> set after every method?
myList.size<String>() or myList.size()...
No there is no need to do that; after you have declared the type of the list (List<String>) and created one the compiler knows that its elements shall all have type String and flags every attempt to do otherwise as an exception. So, basically you can use the 'raw' methods whereever you want.
kind regards,
Jos