Using static method of another classes
import java.lang.Math;
class Another
{
public static void main(String[] args)
{
int result;
result = Math.min(10, 20);
System.out.println(result);
System.out.println(Math.max(100, 200));
}
}
No comments:
Post a Comment