blob: 4dccd962f27bb13c4c778e86838cd5485d9cf996 (
plain) (
tree)
|
|
import scala.collection.mutable._;
object Test extends Application {
val buf = new ArrayBuffer[String];
for(val i <- List.range(0,1000)) {
buf + "hello";
}
Console.println("1000 = " + buf.length);
}
|