Well sorry im still a noob to this java thing lol

initialise d1, d2 to 0
declare lmb array[10][10]
WHEN left mouse is clicked
IF(d2<9)
add 1 to d2
ELSE
set d2 to 0
add 1 to d1

IF(d1<9)
set lmb[d1][d2] to x-coordinate of mouse event
ELSE
print out all the stored values