File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes collection classes Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "collection classes" Watch "collection classes" New topic
Author

collection classes

mansi gupte
Ranch Hand

Joined: Dec 30, 2008
Posts: 72
i tried compling this program but got errors while using add() , i am sure that this method is not deprecated according to java 2, can someone clarify this?

thnks ,
piya

Ankit Garg
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9189
    
    2

Hi Priya! Welcome to javaranch.

First of all the program compiles fine. It just gives a warning as you have not used generics in your code. After Java 5, non generic collections are considered type unsafe. So it will only give warning and not error.

Also your display name is not according to the javaranch naming policy. So please change it...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: collection classes
 
Similar Threads
Casting question
QuickSort Question
displaying the most highly repeated entry in an ArrayList
util package
Help me solve a puzzle on datastructures