top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Error in appending list in scala

+2 votes
147 views
   var appendList = List.empty[String] 
    appendList :+= "a"
   appendList :+= "b"
   appendList :+= "c"
   var appendList = List.empty[String]

I am getting a null after running this code.please help to find error.
Thanks

posted Jun 28, 2016 by Shivam Kumar Pandey

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

...