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

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

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