how to call a method in java?

best answer
Calling Static Method in Java. import java.util.*; public class StaticMethodCallExample. public static void main (String args ) int a; //calling static method of the Math class. a=Math.min (2398); System.out.println (Minimum number is + a);