> I want to iterate over the ArrayBuffer.
You should get yourself familiar with methods related to the Scala
collection library:
https://twitter.github.io/scala_school/collections.html
Almost all of the methods take a function as their parameter. This is
a very convenient feature of Scala (unlike
Hi Deep,
If you are requirement is to read the values from ArrayBuffer use below code
scala> import scala.collection.mutable.ArrayBuffer
import scala.collection.mutable.ArrayBuffer
scala> var a = ArrayBuffer(5,3,1,4)
a: scala.collection.mutable.ArrayBuffer[Int] = ArrayBuffer(5, 3, 1, 4)
scala>