2d Array Program Questions In Java