public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        final int n = 2;
        MethodOfEilerN.iterCount = 0;
        System.out.println("y(k+1)[0]                    |          y(k+1)[1]                    |          t(k+1)          ");
        while (tk < T) {
                tk1 = tk + tau;
                ynext = Arrays.copyOf(MethodOfNewton.MethodNewton(ynext), n);
                boolean flagEps = false;
                for (int i = 0; i < n; i++) {
                    epsk[i] = -(tau / (tau + tauprev)) * (ynext[i] - y[i] - tau / tauprev * (y[i] - yprev[i]));
                    if (Math.abs(epsk[i]) > eps) flagEps = true;
                }

                if (flagEps) {
                    tau /= 2;
                    tk1 = tk;
                    ynext = Arrays.copyOf(y, n);
                } else {
                    taunext = Math.min(Math.sqrt(eps / Math.abs(epsk[0])) * tau, Math.sqrt(eps / Math.abs(epsk[1])) * tau);
                    if (taunext > taumax) taunext = taumax;
                    yprev = Arrays.copyOf(y, n);
                    y = Arrays.copyOf(ynext, n);
                    tauprev = tau;
                    tau = taunext;
                    tk = tk1;
                    //Выводим
                    System.out.print(ynext[0] + " | ");
                    System.out.print(ynext[1] + " | ");
                    System.out.println(tk1);
                }

                flagEps = false;
                iterCount++;

            }
            System.out.println(ynext[0] + " " + ynext[1]);
            System.out.println(iterCount);
            scanner.close();
        }