Merge pull request #9556 from alimate/BAEL-4310
BAEL-4310: Array Length Example
This commit is contained in:
		
						commit
						184ea1c260
					
				| @ -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()); | ||||
|     } | ||||
| } | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user