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
Post a Comment