public class PowerMethod {
    double[][] a;
    double tol;
    double eigenValApprox;
    double eigenVecApprox[][];

    public PowerMethod(double[][] a, double tol, double[][] initial) {
        this.a = a;
        this.tol = tol;
        eigenVecApprox = initial;
    }

    public int findErrorTol() {
        return 0;
    }

    public int powerMethod(double[][] a, double[][] vecApprox) {
        eigenValApprox = vecApprox[0][0];
        eigenVecApprox = (a * vecApprox) / vecApprox[0][0];                 //implement matrix multiplication
    } 
}

public class PowerMethod {
    double[][] a;
    double tol;
    double eigenValApprox;
    double[][] eigenVecApprox;

    public PowerMethod(double[][] a, double tol, double[][] initial) {
        this.a = a;
        this.tol = tol;
        eigenVecApprox = initial;
    }

    public int findErrorTol() {
        return 0;
    }

    public int powerMethod(double[][] a, double[][] vecApprox) {
        eigenValApprox = vecApprox[0][0];
        eigenVecApprox = (a * vecApprox) / vecApprox[0][0];                 //implement matrix multiplication
    }

    public double getEigenValue() {
        return eigenValApprox;
    }

    public double[][] getEigenVec() {
        return eigenVecApprox;
    }
}

Update PowerMethod.java