Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Cell {
- private int number;
- private char type;
- public Cell(int number, char type){
- this.number = number;
- this.type = type;
- }
- public Cell(char type){
- this.number = 0;
- this.type = type;
- }
- public void setNumber(int number){
- this.number = number;
- }
- public int getNumber(){
- return this.number;
- }
- public void setType(char type){
- this.type = type;
- }
- public int getType(){
- return this.type;
- }
- public String toString(){
- return "" + this.type;
- }
- }
Add Comment
Please, Sign In to add comment