Class MagicSquareExample

  • public class MagicSquareExampleextends Object
    Example of use of Matrix Class, featuring magic squares.
    • Constructor Detail

      • MagicSquareExample

        public MagicSquareExample()
    • Method Detail

      • magic

        public static Matrix magic(int n)
        Generate magic square test matrix.
      • fixedWidthDoubletoString

        public static String fixedWidthDoubletoString(double x,                              int w,                              int d)
        Format double with Fw.d.
      • fixedWidthIntegertoString

        public static String fixedWidthIntegertoString(int n,                               int w)
        Format integer with Iw.
      • main

        public static void main(String[] argv)

SCaVis 2.2 © jWork.ORG