can i call another function from main hava

Solutions on MaxInterview for can i call another function from main hava by the best coders in the world

showing results for - "can i call another function from main hava"
Zachariah
07 Feb 2016
1package learningjava;
2
3public class helloworld {
4    public static void main(String[] args) {
5        new helloworld().go();
6        // OR
7        helloworld.get();
8    }
9
10    public void go(){
11        System.out.println("Hello World");
12    }
13    public static void get(){
14        System.out.println("Hello World, Again");
15    }
16}
17