how to install java JDK on Linux Mint 18.2 Sonya and ubuntu 17.04 using terminal

Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented, and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers “write once, run anywhere” (WORA),meaning that compiled Java code can run on all platforms that support Java without the need for recompilation.Java is a general-purpose […]