You could either put the code of setVal() in the constructor or just call setVal() in main before the print loop. After that I had to change every for loop to be < 3 and then it worked. Remember that arrays start with 0 not 1. So, your loops are making the last element of the array being no[3][3] when the max should be no[2][2],
When I changed all the for loops to be i & j < 3 everything worked fine.