PDA

View Full Version : Using Sets/Collections in xCode




Gemini6Ice
Jun 25, 2009, 08:49 PM
The hardest part about programming for me is figuring out how to import the necessary library files for what I want to do.

I'm trying to extend the interfaces described here:
http://java.sun.com/docs/books/tutorial/collections/interfaces/index.html

But xCode "cannot find symbol"! Is this not already built-in stuff? If not, how do I import it so that I can use it?

I appreciate any help you can provide! Thanks!



garethlewis2
Jun 26, 2009, 01:49 AM
XCode is really a great IDE for Java. It supports it, but isn't built for it.

Install Eclipse or NetBeans, they are built for Java and in Java.

To answer your question, no the Collections interface isn't built into Java, it is another series of classes that you have to import.

Download the Java doc from Sun.

Collections, e.g. ArrayList, Vector, Map, etc are all in the package java.util