Java version 8/11

Question:
I am teaching AP Computer Science A class which College Board still uses Java 8. Some of the code that we work with has been deprecated. Is there a way to change the Java version to either 8 or 11? For instance, I am teaching the Integer and Double wrapper classes. Those classes, the constructor is deprecated in version 17. Students are unable to compile and run the code. Any help would be appreciated.

Replit Profile: https://replit.com/@michaelcarlson