blob: fba859a45639207084eda7e998a3c09af6cbf3e0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import scala.collection.mutable._;
object Test extends App {
val buf = new ArrayBuffer[String];
for (i <- List.range(0,1000)) {
buf += "hello";
}
Console.println("1000 = " + buf.length);
}
|