summaryrefslogtreecommitdiff
path: root/projects/project3_kenken/Cell.java
diff options
context:
space:
mode:
authorAlexander Pickering <alexandermpickering@gmail.com>2017-02-06 11:41:36 -0500
committerAlexander Pickering <alexandermpickering@gmail.com>2017-02-06 11:41:36 -0500
commit89cdf3efb49335e7c07a68a5a64657eeec2288a6 (patch)
treecdc0fd8165e65b1637fa54cac11c932acefc8a89 /projects/project3_kenken/Cell.java
downloadcoe0445-89cdf3efb49335e7c07a68a5a64657eeec2288a6.tar.gz
coe0445-89cdf3efb49335e7c07a68a5a64657eeec2288a6.tar.bz2
coe0445-89cdf3efb49335e7c07a68a5a64657eeec2288a6.zip
Inital commitHEADmaster
Diffstat (limited to 'projects/project3_kenken/Cell.java')
-rw-r--r--projects/project3_kenken/Cell.java30
1 files changed, 30 insertions, 0 deletions
diff --git a/projects/project3_kenken/Cell.java b/projects/project3_kenken/Cell.java
new file mode 100644
index 0000000..b9966cf
--- /dev/null
+++ b/projects/project3_kenken/Cell.java
@@ -0,0 +1,30 @@
+public class Cell
+{
+ int x,y;
+ int num;
+ public Cell(int x, int y)
+ {
+ this.x = x;
+ this.y = y;
+ }
+ public int getX()
+ {
+ return x;
+ }
+ public int getY()
+ {
+ return y;
+ }
+ public void setNum(int num)
+ {
+ this.num = num;
+ }
+ public int getNum()
+ {
+ return num;
+ }
+ public String toString()
+ {
+ return "Cell:(" + x + "," + y + ")=" + num;
+ }
+} \ No newline at end of file