Array initializing in Scala -


i'm new scala ,just started learning today.i know how initialize array in scala.

example java code

string[] arr = { "hello", "world" }; 

what equivalent of above code in scala ?

scala> val arr = array("hello","world") arr: array[java.lang.string] = array(hello, world) 

Comments

Popular posts from this blog

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

php - How can I merge Nodes & Webform Submissions into instances of one general Content Type in Drupal 6? -

xslt - Umbraco and EXSLT sets do not work -