| Author |
warining is coming while using Map why? code here
|
nagaraj raja
Ranch Hand
Joined: Aug 06, 2005
Posts: 36
|
|
|
 |
reubin haz
Ranch Hand
Joined: May 12, 2005
Posts: 287
|
|
That's because those collections do not know what type parameters will be. If you place <String, Double> behind Map and TreeMap, those warnings will disappear
|
SCJA, SCJP5.0, SCBCD, SCWCD
|
 |
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
|
|
If you are studying for SCJP 1.4 be sure to use the Java 1.4.2_* compiler. Otherwise read up on generics.
|
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
|
 |
 |
|
|
subject: warining is coming while using Map why? code here
|
|
|