adding 2 arraylists to another arraylist
<p>I have 2 arraylist like this, but im not sure how i can combine them together. I have tried the Collections.copy() and addAll method but it wouldnt work, I want to know if there is any way I can combine them together into another arraylist? What I really want is to have the first arraylist storing the data from the second arraylist, so each of the Point would have a few lines inside it. Maybe you guys can give me some suggestions of how i can do this please, thanks.</p>

<pre><code> static ArrayList&lt;Vertex&gt; getPoints() {
      Scanner input = Reader(Vertex.airports);
      ArrayList&lt;Vertex&gt; result = new ArrayList&lt;Vertex&gt;();

      while(input.hasNext()){
          String point = input.nextLine();
          result.add(new Vertex(point));

      }
      input.close();
      return result;

  }

  static ArrayList&lt;Edge&gt; getlines(){
          Scanner input = Reader(Vertex.graph);
          ArrayList&lt;Edge&gt; result = new ArrayList&lt;Edge&gt;();

          while(input.hasNext()){
              String route = input.nextLine();
              result.add(new Edge(route));
          }
          input.close();
          return result;

      }
</code></pre>

<p>the data are from 2 text files, the file looks like this. They are just some of it to show what Im trying to do here.
(index,name)</p>

<pre><code>1 England
2 France
</code></pre>

<h2>   3 Holland</h2>

<p>(index,start,cost,end)  </p>

<pre><code>1 1 2 2
2 1 3 1
3 1 6 3
4 1 7 3
5 2 1 2
6 2 3 1
7 2 4 1
8 2 5 2
9 2 6 2
10 3 1 1
11 3 2 1
12 3 4 1
13 3 8 1
14 3 10 2
</code></pre>

<p>thanks to Captain Ford this is completed!</p>
