Java SE 11: JDK Objects and Nested Loops