title: For loop in the form of : "for (A b : c)" in Java
body: <p>This is the first time that I've seen this kind of syntax : </p>
  
  <pre><code>// class Node
  public class Node { 
  
  ...
  ...
  
  }
  
  public class Otherclass { ... }
  
  Otherclass graph = new Otherclass();
  
  // getSuccessors is a method of Otherclass class 
  
  Node currentNode ;
  
  List&lt;Node&gt; successors = graph.getSuccessors(currentNode);
  
  // weird for loop 
  
  for (Node son : successors) { 
  
  // do something 
  
  }
  </code></pre>
  
  <p>What is that for loop ? some kind of a Matlab syntax ? </p>
  
  <p>Is there any other way to write that for loop ?</p>
  
  <p>Regards</p>