Java Robot.toString()
Syntax
Robot.toString() has the following syntax.
public String toString()
Example
In the following code shows how to use Robot.toString() method.
/*from w w w. j a va 2 s . c o m*/
import java.awt.Robot;
public class Main {
public static void main(String[] args) throws Exception {
Robot robot = new Robot();
System.out.println(robot.toString());
}
}
Home »
Java Tutorial »
java.awt »
Java Tutorial »
java.awt »