Debug until the test passes

Simplest thing that could possibly work:

    public Complex add(Complex z2) {
        return new Complex(2, 2);
    }
    
    public long getRealPart() {
        return 2;
    }

    public long getImaginaryPart() {
        return 2;
    }

Previous | Next | Top | Cafe au Lait

Copyright 2005 Elliotte Rusty Harold
elharo@metalab.unc.edu
Last Modified May 19, 2005