I'm trying yo use an array that is created in one class and using Clone() To clone it into another class by triggering a method but its throwing a null pointer exception 
int[] mat[];
int N; 
int SRN;
int K;
int send[][];
Generate()
{ 
}
Generate(int N, int K) 
{ 
    this.N = N; 
    this.K = K; 
    // Compute square root of N 
    Double SRNd = Math.sqrt(N); 
    SRN = SRNd.intValue();
    mat = new int[N][N];
}
public int[][] SendAry()
{
    return send.clone();
}
and call this method from another class and string it in an array
    Generate ARY=new Generate();
    int Values[][]=ARY.SendAry();
 
    