]>
git.zerfleddert.de Git - FreeShisen/blob - src/de/cwde/freeshisen/Point.java
fc3e971bd7c013d14dea7aa9d9f2d8052661bdf3
1 package de
.cwde
.freeshisen
;
4 public Point(int i
, int j
) {
9 public boolean equals(Point p
) {
10 return (i
==p
.i
&& j
==p
.j
);
13 public String
toString() {
14 return "("+i
+","+j
+")";
17 public static Point
fromString(String s
) {
18 String
[] ij
=s
.split(",",2);
19 int i
=Integer
.parseInt(ij
[0]);
20 int j
=Integer
.parseInt(ij
[1]);
21 return new Point(i
,j
);
28 return new Point(this.i
,this.j
);