How To Set Java Path & JAVA_HOME in Windows 10, MacOS & Ubuntu

I’ll explain to you how to set Java path variable on Windows, macOS, and Ubuntu (Linux). I’ve prepared awesome examples of how to set Java Home via command prompt and GUI (Windows) as well. I’ll show you how to check Java version and verify Java Home variable. Select link depending on your operation system: Set … Read more

How to Update Java on Windows 10

Java update mechanism could be different on Windows 10 depending on your needs: If you want to update from one major version of Java to another one, e.g. from Java 8 to Java 11 – you need to uninstall an old version and install a new one. If you want to update a minor version … Read more

How to Uninstall Java on Ubuntu

There are 2 options depending on the type of JDK (OpenJDK or Oracle JDK) how to uninstall Java in Ubuntu. OracleJDK Check installed Oracle JDK packages: Remove Java 8: Removing Java 9: OpenJDK First of all, take a look at installed OpenJDK packages: Depending on installed packages you should edit a list to remove: Check … Read more

How to Uninstall Java on MacOS

The first requirement to uninstall Java on Mac OS – you should have administrator privileges. Second – you shouldn’t be afraid to use terminal. This method works fine for any version of Java – 8, 9, 10, 11, 12, 13 or any other version. Uninstalling Java on the Mac Click on Launchpad in the dock … Read more

How to Uninstall Java on Windows 10

How to uninstall java on Windows 10? Easy – you can do it in the same way as any other application. Open Start – Settings and search for “Apps & features“: Search for “Java” in “Apps & features” and press “Uninstall” on Java (64-bit): Uninstall Java (TM) SE Development Kit as well: Removing Java is … Read more

How to Update Java on MacOS

It’s really simple to update Java on Mac OS – 3 simple steps. Go to System Preferences and click on Java icon on the bottom. Java Control Panel will be opened, go to Update tab and press Update Now. Java Installer will be opened, press Install Update button. Wait a little bit while a new … Read more

How to Enable Java in Chrome?

Does Chrome support Java? Using Java in Chrome is a little bit tricky at this moment. NPAPI was required to enable Java applets, but since 24th of November 2014, NPAPI was disabled by default. Since April 2015 NPAPI plugins were unpublished from Chrome Web Store. Between this period you could enable it in settings: But … Read more

How to Update Java on Ubuntu

It’s really simple to update Java on Ubuntu – just 2 simple commands. While you’re using PPA as I described in the installation chapter you can execute update and upgrade commands in the console and that’s it. Open Terminal (Alt+Ctrl+T) and execute: If a new version of Java is available it will be automatically updated.

Scanner Class in Java

Java Scanner is a simple text parser, it can parse a file, input stream or string into primitive and string tokens using regexp. It breaks an input into the tokens using delimiter regular expression (whitespace by default Character#isWhitespace(char)). Tokens can be converted into primitives (double, float, long, int, byte, short, boolean), number objects (BigDecimal, BigInteger) … Read more