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
    } 
}

@@ -87,24 +87,28 @@
 ;%0A    double
+%5B%5D%5B%5D
  eigenVecApp
@@ -110,20 +110,16 @@
 ecApprox
-%5B%5D%5B%5D
 ;%0A%0A    p
@@ -548,12 +548,161 @@
 on%0A    %7D
- 
+%0A%0A    public double getEigenValue() %7B%0A        return eigenValApprox;%0A    %7D%0A%0A    public double%5B%5D%5B%5D getEigenVec() %7B%0A        return eigenVecApprox;%0A    %7D
 %0A%7D%0A

Update PowerMethod.java