MONKEY B UTT SCRFATCHER MONKEY
MONKEY B UTT SCRFATCHER MONKEY

A:

I think you need to use the following code:
import java.util.Arrays;

class A extends B {
    @Override
    public void apply(A a) {
        if (a == null) {
            a = new A();
        }
        if (a == null) {
            a = new B();
        }
        if (