Below is a small Java program that collects elements into a LinkedHashSet, then performs several checks and prints the final result to standard output. You need to determine the exact stdout of this program.
stdout with the same line breaks and line order.Main.java.javac Main.java
java Main
javac Main.java then java MainClick a line and write what it prints. Explanation is optional.