public class Main { static void function(){ System.out.println("I am a function!"); } public static void main(String[] args) { function(); } }