]>
git.zerfleddert.de Git - FreeShisen/blob - src/org/proofofconcept/shisensho/Point.java
7771ef5867d33c9d02e35e0354aa0f2f9bfbfdd8
1 package org
.proofofconcept
.shisensho
;
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
);