Skip to main content
Active reading [<https://en.wiktionary.org/wiki/undeterminate#Adjective> <https://en.wikipedia.org/wiki/Sentence_clause_structure#Run-on_sentences>].
Source Link
Peter Mortensen
  • 31.4k
  • 22
  • 110
  • 134

Arrays doesdo not supportssupport generics (because it's another type of data), but you can use undeterminatedundeterminate generics while its creation if you don't need casting. By the way, btw it's better than use ausing reflection:

List<?>[] chars = new List[3];

So now we are getting the legal generics array even without Unchecked type warning,.

Arrays does not supports generics (because it's another type of data), but you can use undeterminated generics while its creation if you don't need casting, btw it's better than use a reflection:

List<?>[] chars = new List[3];

So now we are getting the legal generics array even without Unchecked type warning,

Arrays do not support generics (because it's another type of data), but you can use undeterminate generics while its creation if you don't need casting. By the way, it's better than using reflection:

List<?>[] chars = new List[3];

So now we are getting the legal generics array even without Unchecked type warning.

Source Link
Acuna
  • 1.9k
  • 19
  • 25

Arrays does not supports generics (because it's another type of data), but you can use undeterminated generics while its creation if you don't need casting, btw it's better than use a reflection:

List<?>[] chars = new List[3];

So now we are getting the legal generics array even without Unchecked type warning,