Scala: Arrays


Example: An Arrays of numbers in Scala


	object ArrayOfNums {
	   def main(args: Array[String]) {
		  var myNums = Array(5, 7, 2, 11)
		  
		  for ( x <- myNums ) {
			 println( x )
		  }
	   }
	}
	

Output:

  5
  7
  2
  11