Analyze the code in main and migrate the code to Java 24.
Analyze the code in main and migrate the code to Java 24.