I have an array named shop which has a length of 10.

char shop[][] = new char[10][10]
so my shop.length is 10

if (colshop == 9)
In the above line, I have hard-coded the value to be 9,...