Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

can i call another function from main hava

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");
    }
}
Comment

PREVIOUS NEXT
Code Example
Java :: how to convert iso-8859-1 to utf-8 in java 
Java :: how to highlight text in android studio 
Java :: color class android 
Java :: Number to decimal places in java 
Java :: how to convert errorBody to pojo in retrofit 
Java :: how to create char type with jpa 
Java :: constructor in java 
Java :: Using multiple delimiters with String Tokenizer 
Java :: mongodb check if field exists java 
Java :: java print boolean with spaces 
Java :: java print a line seperate by space 
Java :: java spring set private field in test 
Java :: erstelle hashmap java 
Java :: how to delete an element from an array in java data structure 
Java :: linked list vs array list 
Java :: android studio Toast usage 
Java :: get SecretKey from String 
Java :: what is use of drivermanager class 
Java :: android activity keyboard hide 
Java :: java array merge 
Java :: How to output error in java 
Java :: how to create search function in android studio 
Java :: java add element to map 
Java :: Compare two csv files using java 
Java :: java empty array list vs null elements 
Java :: Java if...else 
Java :: new in t arrray java 
Java :: java loop through array 
Java :: java confirmation dialog 
Java :: math class in java 
ADD CONTENT
Topic
Content
Source link
Name
5+5 =