Robot.getAutoDelay() has the following syntax.
public int getAutoDelay()
In the following code shows how to use Robot.getAutoDelay() method.
import java.awt.Robot; /* www . jav a 2s. co m*/ public class Main { public static void main(String[] args) throws Exception { Robot robot = new Robot(); robot.delay(1000); System.out.println(robot.getAutoDelay()); } }
The code above generates the following result.