What are the knowledge points of Scala array
This article introduces the relevant knowledge of "what are the knowledge points of the Scala array". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
1. An array of fixed length, new Array [String] [10] or Array (1 String 2, 3 4, 5), corresponds to the JVM and exists as an array.
Variable length array, ArrayBuffer, variable length array and fixed length array can be transformed into each other, toArray or toBuffer
Third, the traversal of the array, for (I