Check out example codes for "shakescleare merchant of venice". It will help you in understanding the concepts better.

Code Example 1

class java
{ 
  public static void main()
  {
    system.out.println("leave it");
  }
}

Learn ReactJs, React Native from akashmittal.com