https://wikimass.com/java/star-pattern-3