Class PE0028

    • Constructor Summary

      Constructors 
      Constructor Description
      PE0028()
      A simple constructor to set number and title.
    • Method Summary

      Modifier and Type Method Description
      java.lang.String solve()
      It is not necessary to build the complete matrix.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PE0028

        public PE0028()
        A simple constructor to set number and title.
    • Method Detail

      • solve

        public java.lang.String solve()
        It is not necessary to build the complete matrix. Just jump from one corner to the other and sum the values there.
        Returns:
        the sum of all values on the diagonals