From 37d0b14f2e9a4b9f8761c4ac63223db0254d190b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B0=E5=BE=97=E5=90=83=E4=B8=AD=E9=A5=AD?= <16763175+remember-to-have-lunch@user.noreply.gitee.com> Date: Sat, 7 Mar 2026 04:34:28 +0000 Subject: [PATCH] add Point.java. --- Point.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Point.java diff --git a/Point.java b/Point.java new file mode 100644 index 0000000..a074ad9 --- /dev/null +++ b/Point.java @@ -0,0 +1,18 @@ +package review; + +public class Point { + public int x; + public int y; + public Point(){ + this.x = 0; // 初始化为0 + this.y = 0; + } + public Point(int x,int y){ + this.x = x; + this.y = y; + } + public Point(Point p){ + this.x = p.x; + this.y = p.y; + } +} -- Gitee