The Answer
You can update Java by downloading the newer version from Oracle directly When you install the installer would delete the older version for you.
The OLD Answer (no longer works)
Or you Mac has built in system that would fetch and update java from Oracle for you for you. Go to System Preference > Java > Update > Update Now. It would also be a good idea to turn on "Check for Updates Automatically" that way when a newer version of Java comes out your Mac would ask you to install it and it becomes a simple one click install.

How to update my installed Java version? The “install now” button doesn’t do anything.
How to update my Java from 17 to 22?
Switching versions of Java on Mac OSX
Manage Multiple JDKs on Mac OS, Linux and Windows WSL2
Use these tools if you find them convenient, but know that a lot of effort has gone into making the JDK not require any setup, nor does it have any notion of "environment". You can set JAVA_HOME, you can leave JAVA_HOME pointed at a symbolic link and change that -- this is what SDKMAN does anyway -- or you can do nothing and just run java from its JDK directory -- it will do the right thing on its own. That's how the JDK was designed to work. Such tools add an unnecessary layer of internal persisted state, and unlike the language runtimes that inspired them, they are something that the JDK was specifically designed to avoid.
How do I check which Java versions are installed on my Mac?
How can I change the default Java version on macOS?
Do changes to the Java version persist after restarting my Mac?
Videos
The Answer
You can update Java by downloading the newer version from Oracle directly When you install the installer would delete the older version for you.
The OLD Answer (no longer works)
Or you Mac has built in system that would fetch and update java from Oracle for you for you. Go to System Preference > Java > Update > Update Now. It would also be a good idea to turn on "Check for Updates Automatically" that way when a newer version of Java comes out your Mac would ask you to install it and it becomes a simple one click install.

Just go to the java page and download the latest version. Upon starting the installation process, the installer automatically detects your current java version, either deletes it and does a complete reinstall or just updates your version.
Just as the title says. I have Java 17 on my computer and I want to update to the latest version (which I believe is 22). I went to my Java configure menu and clicked on update but it says that my Java is up to date. So, I'm not sure what I'm doing wrong. If someone can ELI5 this for me, I would be grateful, thank you!