public class PowerMethod {
    double[][] a;
    double tol;
    double[][] initial;
    double eigenValue;
    double eigenVector[][];

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

    public int findErrorTol() {
        return 0;
    }

    public int powerMethod(double[][] a, double[][] initial) {
        return 0;
    } 
}

@@ -58,32 +58,8 @@
 ol;%0A
-    double%5B%5D%5B%5D initial;%0A
     
@@ -77,10 +77,14 @@
 nVal
-ue
+Approx
 ;%0A  
@@ -104,11 +104,14 @@
 nVec
-tor
+Approx
 %5B%5D%5B%5D
@@ -240,20 +240,22 @@
     
-this.initial
+eigenVecApprox
  = i
@@ -382,36 +382,172 @@
 %5D%5B%5D 
-initial) %7B%0A        return 0;
+vecApprox) %7B%0A        eigenValApprox = vecApprox%5B0%5D%5B0%5D;%0A        eigenVecApprox = (a * vecApprox) / vecApprox%5B0%5D%5B0%5D;                 //implement matrix multiplication
 %0A   

Update PowerMethod.java