Check out example codes for "can i call another function from main hava". It will help you in understanding the concepts better.

Code Example 1

package learningjava;

public class helloworld {
    public static void main(String[] args) {
        new helloworld().go();
        // OR
        helloworld.get();
    }

    public void go(){
        System.out.println("Hello World");
    }
    public static void get(){
        System.out.println("Hello World, Again");
    }
}

Learn ReactJs, React Native from akashmittal.com