public class move{ int row,column,howmuch; public move(int i,int j,int k){ row=i;column=j;howmuch=k; } public int getRow(){ return row; } public int getColumn(){ return column; } public int getCastig(){ return howmuch; } public String toString(){ String ret=""; ret+="["+new Integer(row).toString()+","+new Integer(column).toString()+"] - "+new Integer(howmuch).toString(); return ret; } }