b084b0c9e065001b1748b1d06439a30d
来自「在eclipse下开发的求平面上两点之间的最短距离。通过随机在平面上生成无数个点」· 代码 · 共 30 行
TXT
30 行
package distance;
import java.math.*;
/*describe the information of coordinate*/
public class Point {
private double XCoordinate;//x coordinate
private double YCoordinate;//y coordinate
public Point(){
}
/*set the value of x coordinate*/
public void setXCoordinate(double XCoordinate){
this.XCoordinate = XCoordinate;
}
/*set the value of y coordinate*/
public void setYCoordinate(double YCoordinate){
this.YCoordinate = YCoordinate;
}
/*get the value of x coordinate*/
public double getXCoordinate(){
return this.XCoordinate;
}
/*get the value of y coordinate*/
public double getYCoordinate(){
return this.YCoordinate;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?