Array Length Example

This commit is contained in:
Ali Dehghani
2020-06-22 21:01:51 +04:30
parent ad3fa4dfd8
commit 3924c813b0

View File

@@ -0,0 +1,13 @@
package com.baeldung.arraylength;
import org.junit.Test;
import org.openjdk.jol.info.ClassLayout;
public class ArrayLengthUnitTest {
@Test
public void printingTheArrayLength() {
int[] ints = new int[42];
System.out.println(ClassLayout.parseInstance(ints).toPrintable());
}
}