test/script/basic/list.js

changeset 136
c54e218333be
parent 7
5a1b0714df0e
child 830
3cb09c560108
equal deleted inserted replaced
133:5759f600fcf7 136:c54e218333be
26 * 26 *
27 * @test 27 * @test
28 * @run 28 * @run
29 */ 29 */
30 var l = new java.util.ArrayList(); 30 var l = new java.util.ArrayList();
31 print("l.class.name=" + l.class.name) // Has "class" property like any POJO 31 print("l.class.name=" + Java.typeName(l.class)) // Has "class" property like any POJO
32 32
33 l.add("foo") 33 l.add("foo")
34 l.add("bar") 34 l.add("bar")
35 35
36 print("l.length=" + l.length) // doesn't work, returns undefined 36 print("l.length=" + l.length) // doesn't work, returns undefined

mercurial