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> for(b <- a) | println(b) 5 3 1 4 scala> Regards, Rajesh On Thu, Sep 4, 2014 at 1:34 PM, Deep Pradhan <pradhandeep1...@gmail.com> wrote: > Hi, > I have the following ArrayBuffer > *ArrayBuffer(5,3,1,4)* > Now, I want to iterate over the ArrayBuffer. > What is the way to do it? > > Thank You >