7 0 1 0 3 12 0 5
1 3 12 5 0 0 0
static void moveZeros(int[] a){int w=0;for(int x:a) if(x!=0) a[w++]=x;while(w<a.length) a[w++]=0;}
static void moveZeros(int[] a){int w=0;for(int x:a) if(x!=0) a[w++]=x;while(w<a.length) a[w++]=0;}