how to rite java code with main method code example Example: jave main funtion public static void main(String[] args)