Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.12 seconds.

  1. Replies
    15
    Views
    2,129

    Re: Creating ArrayLists

    Well, you are adding an Edge (the same Edge) twice in the Data method (which should be data, follow standard naming conventions). But when do you call that method?
  2. Replies
    15
    Views
    2,129

    Re: Creating ArrayLists

    First off, stop relying on your IDE for options.

    Secondly, is that exactly what your program looks like? Statements like method calls need to be inside a method.
  3. Replies
    15
    Views
    2,129

    Re: Creating ArrayLists

    What happened when you tried that?
  4. Replies
    15
    Views
    2,129

    Re: Creating ArrayLists

    Do you know how to create an instance of something? Recommended reading: Creating Objects (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
  5. Replies
    15
    Views
    2,129

    Re: Creating ArrayLists

    Instantiate a new Edge using the constructor, and add that instance to your ArrayList.
Results 1 to 5 of 5