Debian Codegraph @

rhino/testsrc/doctests/467396.doctest

raw
1 // This Source Code Form is subject to the terms of the Mozilla Public
2 // License, v. 2.0. If a copy of the MPL was not distributed with this
3 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
5 js> var a = java.lang.reflect.Array.newInstance(java.lang.Integer, [17,4]);
6 js> a
7 [[Ljava.lang.Integer;@1543c88
8 js> a.length
9 17
10 js> a[0].length
11 4
12 js> var a = java.lang.reflect.Array.newInstance(java.lang.Integer, 17, 4);
13 js> a
14 [[Ljava.lang.Integer;@f11404
15 js> a.length
16 17
17 js> a[0].length
18 4