How to create a mutable array in Scala?

96. How to create a mutable array in Scala?

  1. Initializing using the var keyword
  2. Using arrayBuffer
  3. Adding mutable before initialization
  4. All of these

Answer: B) Using arrayBuffer

Explanation:

Read more: ArrayBuffer in Scala (Creating Mutable Arrays)

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.