for(int i=0;i<newarray.length;i++) { newarray[i]=cards[i]; cards=newarray; }
including parenthisesfor(int i=0;i<newarray.length;i++) { newarray[i]=cards[i]; cards=newarray; }
why with the second statement the the variable i goes only one time since in the first statement goes 51 times which is newarray.length equal to 51.
Please help me enyone to understand this.