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?
Type: Posts; User: KevinWorkman
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?
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.
What happened when you tried that?
Do you know how to create an instance of something? Recommended reading: Creating Objects (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
Instantiate a new Edge using the constructor, and add that instance to your ArrayList.