How do I install Java on my MacBook Pro?

How do I install Java on my MacBook Pro?
To install the JDK on macOS:

Download the JDK . dmg file, jdk-10.
From either the browser Downloads window or from the file browser, double-click the . dmg file to start it.
Double-click the JDK 10.
Click Continue.
Click Install.
Enter the Administrator user name and password and click Install Software.

To install the JDK on macOS:
  1. Download the JDK . dmg file, jdk-10.
  2. From either the browser Downloads window or from the file browser, double-click the . dmg file to start it.
  3. Double-click the JDK 10.
  4. Click Continue.
  5. Click Install.
  6. Enter the Administrator user name and password and click Install Software.
See also  How do you get Robux for free 2022 no human verification?