I was writing a simple Java program to input a matrix and then display it using 2-dimensional arrays. I used the same logic which I had previously used for the same program in C. But it isn't...