?? point.java
字號:
import java.io.*;
public class Point implements Serializable
{
// Create a point from its coordinates
public Point(double xVal, double yVal)
{
x = xVal;
y = yVal;
}
// Create a point from another point
public Point(Point point)
{
x = point.x;
y = point.y;
}
// Convert a point to a string
public String toString()
{
return x+","+y;
}
// Coordinates of the point
protected double x;
protected double y;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -