49583/scala-add-user-input-to-array
You can try this:
object printarray { def main(args:Array[String]) { val arr = new Array[Int](3) println("the values of array is ") for (i <- 0 to 2) { arr(i) = scala.io.StdIn.readInt() } arr.foreach(println) } }
For a user to have modification access ...READ MORE
Hi, We can declare Scala arrays in two ...READ MORE
Hi, We can use loop control structures to ...READ MORE
Hey, The range() method will give us integers ...READ MORE
The reason you are not able to ...READ MORE
I think the exception is caused because ...READ MORE
Yes, you can reorder the dataframe elements. You need ...READ MORE
To start with, let me tell you ...READ MORE
Hi, You can check this example in your ...READ MORE
Hi, To create an RDD from external file ...READ MORE
OR
Already have an account? Sign in.