When creating a 2D array and setting the value of some element, other elements get set too, what could be the reason behind such anomaly?
Following is the code exampl