simple function in java code example
Example: function in java
public class Main
{
static void function(){
System.out.println("I am a function!");
}
public static void main(String[] args) {
function();
}
}
public class Main
{
static void function(){
System.out.println("I am a function!");
}
public static void main(String[] args) {
function();
}
}