How I can create those shapes with Java?

Printable View