Using Sets/Collections in xCode

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

  1. macrumors newbie

    Joined:
    Jun 25, 2009
    #1
    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!
     
  2. macrumors 6502

    Joined:
    Dec 6, 2006
    #2
    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