code: public static void Swap(ComplexNumber[] z) {
          for (int i = 0; i < z.length; i++) {
              z[i] = new ComplexNumber(z[i].imaginary, z[i].real);
          }
      }
docs: Swap values between real and imaginary.
  
  @param z Complex number.