Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

arrays of HashMaps

$
0
0

Java thinks

 

Why does Java throw up its hands when you mix generics and arrays?

What are you supposed to do instead?  Are they imagining you will have

a differ type in each slot?

 

 

private HashSet[ numberOfHashSets ];

--

Roedy Green Canadian Mind Products http://mindprod.com

Computers are like Old Testament gods; lots of rules and no mercy.

~ Joseph Campbell (born: 1904-03-26 died: 1987-10-31 at age: 83)

 


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>