title: Java - List<Node> two values
body: <p>I'm stuck again.</p>
  
  <p>I have a  <code>List&lt;Node&gt; node</code> with some values (6, 14) (6, 13) (6, 12) </p>
  
  <p>shown with      </p>
  
  <pre><code>for (Node n : node)
   System.out.print(n);
  </code></pre>
  
  <p>I don't want to change the List type but want to use the Numbers e.g. (6,14) and save them separately to an int.</p>
  
  <pre><code>int x = 6;
  int y = 14;
  </code></pre>
  
  <p>I tried several things but nothing seems work work work except <code>node.get(0)</code> which just shows the  whole node at 0.</p>
  
  <p>Any Ideas?</p>