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