For Loops

// Java
for (int count = 0; count < 4; count++) {
  System.out.println(count);
}
// Scala
for(count <- 0 until 4) {
  println(count)
}
// Also:
for(count <- List(0, 1, 2, 3)) {
  println(count)
}