I have a java class `Jist`that has two fields, `public final Object type` and `public Object[] content`. In the constructor for `Jist` I want to take in an `Object` and get its type, then initialize `content` with some number of empty slots of that type. This is one of the several solutions that I have tried, and the error that I am currently receiving is in the actual initialization of the array:

```
public class Jist{
public final Object type;
public Object[] content;
public Jist(Object type){
    this.type = type.getClass();
        class myType extends Jist{
            Class c = super.type.getClass();
            public Class getType(){
                return c;
            }
        };
    content = new myType.getType()[4];
}

```

}