Check out example codes for "manjaro java". It will help you in understanding the concepts better.

Code Example 1

$ sudo pacman -S jre-openjdk-headless jre-openjdk jdk-openjdk openjdk-doc openjdk-src

Learn ReactJs, React Native from akashmittal.com