public void elFixer(int indice1, int indice2, int arr)
    {
    String url = "jdbc:derby://localhost:1527/PDPIVP";
    String selectdatos="SELECT * FROM Rutas";
    int rutatabu=0;
    try{
    Class.forName("org.apache.derby.jdbc.ClientDriver");
    //catch SQLException
    Connection con = DriverManager.getConnection(url, "Balam", "Balam");
    Connection con1 = DriverManager.getConnection(url, "Balam", "Balam");
    Statement stmt=con.createStatement();
    ResultSet rs = stmt.executeQuery(selectdatos);
    Statement stmt1 = con1.createStatement();
    for (int i=0; i<arr;i++){
        rs.next();
        rutatabu=rs.getInt("RutaTabu");
        if(indice1==i||indice2==i){

        }
        else{
        stmt1.executeUpdate("UPDATE Rutas SET RutaParcial = "+rutatabu+
            " WHERE Indice = "+i);
        }

        }
    
    }
    catch(ClassNotFoundException e){
        System.out.println("no se encontro la clase \n"+
                "error ClassNotFoundException");
        System.out.println(e.toString());
    }
    catch(SQLException e){
        System.out.println("error de conexion \n"+
                "error SQLException");
        System.out.println(e.toString());
    }
   }