I'm creating this in java 4 buttons and output area
When the user click button 1 it will show in the output the following
564(0, 0) // 564 is id number and 0 is location in the x axis and 0 is in the y axis
564(2, 6) //using v.move the location in the x and y axis will change to 2,6
When the user click button 2 it will show in the output the following
125(7, 3)
How can I move 564(0, 0) one unit to the right and report its location also repeat 20 times and report location after each move ( all I know is that I need for loop )