Just when it is in the for merthod. if it's outside then showing the value of the needed array. Also in both case no error is coming..