For example:
scala> val b = new ArrayBuffer[Int]()
<console>:7: error: not found: type ArrayBuffer
val b = new ArrayBuffer[Int]()
^
Can I use REPL to find the full path of ArrayBuffer and import it?
you need to import scala.collection.mutable.ArrayBuffer
, classes (and objects) from scala.collection.mutable are not imported by default.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With