This is a Sierpinski Tree. It's essentially the same as a Sierpinski gasket, except lines are drawn instead of triangles.
Trust your Java.