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

Code Example 1

public static void main(String[] args){
  System.out.println("Goodbye Java");
}

Learn ReactJs, React Native from akashmittal.com