Welcome to the Ranch
Didn't you find installation instructions when you downloaded Java®? We have our own
FAQ about installation, which tells you the usual method of installing a tar.gz download on Linux, or the special installer which seems to work only on Ubuntu.
You may find you have already got Java® however. Try the following instructions at a terminal:-
java -version
javac -version
and see what happens. If they both point to the same update number of Java8, you are probably all right to start programming without further ado.