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