SyntaxFix
Write A Post
Hire A Developer
Questions
ZShape is not static so it requires an instance of the outer class.
ZShape
The simplest solution is to make ZShape and any nested class static if you can.
static
I would also make any fields final or static final that you can as well.
final
static final