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

Code Example 1

public void main(string, args[]) {
}

Learn ReactJs, React Native from akashmittal.com