Square2d java. (BTW, Scanner's nextInt() method is handy.