Moved the Array Length Example to the new Module

This commit is contained in:
Ali Dehghani
2020-06-27 09:45:28 +04:30
parent 22616a3b17
commit 6f274316f9

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());
}
}