Ejemplo n.º 1
0
 /** @param args */
 public static void main(String[] args) {
   OddMagicSquare s = new OddMagicSquare(7);
   String str = s.toString();
   System.out.println("a test with input of 7");
   System.out.println(str);
   boolean tf = isMagic(s.getSquare());
   System.out.println("is the square magic: " + tf);
   s.getInput();
 }