Back to project page FindtheMines.
The source code is released under:
MIT License
If you think the Android project FindtheMines listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package findtheminecore; //from w ww . j a va 2 s . c om public class Position { int pos[]; public Position(int[] pos){ this.pos = pos; } public Position(int row, int col) { this( new int[] {row,col}); } public Position(String string) { String[] strings = string.split("\\,"); pos = new int[] {Integer.parseInt(strings[0]),Integer.parseInt(strings[1])}; } public int getRow() { return pos[0]; } public int getCol() { return pos[1]; } @Override public String toString(){ return Integer.toString(pos[0])+","+Integer.toString(pos[1]); } }