I am trying to figure out to reference an array in another class and having lots of fun. Can anyone help..? This is the code.

As I understand it the getter `getName` is working for a string, but I do not know how to reference an array with the getter `aff_array[] get afz()` 

```
public class aff_array { String name; aff_array[] afz;

public aff_array[] getAfz() {
return afz;
}

public String getName() {
return name;
}

 public static void main (String[] args) {

    int z = 3; //total no of affirmations
    int x = 1;
    aff_array[] afz = new aff_array[z];  //dim

    while ( x < z ) {
        afz[x] = new aff_array();  // create objects for array
        x = x + 1;
    }

    afz[1].name = "i am the best";
    afz[2].name = "you are the rest";

}

```

This is the other class and where I want the array value to replace `aff_array.class.getName()` with `aff_array[] getAfz()` but I dont know how to do it or reference `afz(1)` for example (`getName` is working)

```
 public void onReceive(Context context, Intent intent)
{

    setNotification(context, aff_array.class.getName());
    WakeLocker.acquire(context);
    Toast.makeText(context,"One shot alarm received. No more toasts will be shown.", Toast.LENGTH_SHORT).show();
    WakeLocker.release();
}

```