I need to finish this code which involves deleting all the zero's stored in the array. I thought it was complete but it won't compile, it's my last line that is dubios and I'm not getting right. Thank you.

```
public class DeleteZero {

  public static int[] array(int[] a) {    
    int k = 0;
    for (int i = 0; i < a.length; i++) {
      if (a[i] !=0)
      k++;
    }

    int[] b = new int[k];

    int t = 0;
    for (int i = 0; i < a.length; i++) {
      if (a[i] != 0) {
        b[t] = a[i];
        t++;
      }
    }

    return b;
  }

  public static void main (String args[]) {      
    int[] rand = new int[20];

    for (int i = 0; i < 20; i++) {
      rand[i] = (int)(Math.random());
    }      
    System.out.println(array(a));
  }    
}

```