Java solution for http://rosettacode.org/wiki/Honeycombs