Using Sets/Collections in xCode

Discussion in 'Mac Programming' started by Gemini6Ice, Jun 25, 2009.

  1. Gemini6Ice macrumors newbie

    Jun 25, 2009
    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:

    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!
  2. garethlewis2 macrumors 6502

    Dec 6, 2006
    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

Share This Page