3D Pyramid in Java