Using Iterator

My intention here is to implement a function that do something to a Collection. The function recusively "knock off" one element from the Collection and call recursively until it hits certain base case. Also, I would like my Collection argument untouched (order is not a concern, but at least all the element are there on return). Here is a test:
import java.util.*;
public class Test
     public static void test (Collection c) {
          for (Iterator iter=c.iterator(); iter.hasNext(); ) {
               Object b=iter.next();
               iter.remove();
               // revursively, do something with the
               // ``tail'' of the collection.
               c.add(b);     // cause ConcurrentModificationException
     public static void main(String argv[]) {
          LinkedList lst = new LinkedList();
          for (int i=0;i<10;i++) {
               lst.add (new Integer(i));
          System.out.println("Before: " + lst);
          test (lst);
          System.out.println("After: " + lst);
}I get ConcurrentModificationException and I understand that the problem is that I add within a Iterator loop.
If I remove the line:
c.add(b);my original list will be empty. How is this properly done? Thanks in advance.

You could create a new collection, rather than
modifying the existing one.My idea here is to avoid allocating and copying new
Collection.Don't worry about that. And you wouldn't be copying
it any more than you are now (you'd just be calling
add() on a different object).Good point here, I wasn't aware of this.
>
I need the remove as in the recursive step,What are you don't that's recursive? You referred to
recursion in a comment but what are you actually
doing?
I would
like to call the same function to the original listof
elements except for the one I have removed.So you're removing an element from the list, then
calling the same method recursively, which then also
removes an element, etc.? Are you doing a
combinatorics problem or something?Yes I am trying to find all the possible combination of an arbitrary collection of certain size 0<k<=c.size().
Thanks, I will go with backing up the Collection argument option.

Similar Messages

  • Tree In TableView Using Iterator

    Can I creat a Tree in a TableView using Iterator( Which is implemented as a local class in a Model Class)

    Hi Manish,
    Your question is not that clear. Can you explain more?

  • Advantages of using Iterator

    Please tell me what are the advantages of using Iterator?

    "roll your own" Iterator. Have your own classes return an Iterator. I had a confusing data structure in one class with ArrayList of ArrayLists or other objects ( with their own proprietary data structure). I didn't have the base class use loops and instanceof to find the way to traverse them. I had them all implement the Iterator interface. As the last writer said, it smplified the code a lot.

  • Programatically retrieve data using iterator in oracle ADF Mobile

    I want to read programatically data using iterator in ADF mobile. My code is :
    try
    ValueExpression vex = AdfmfJavaUtilities.getValueExpression("#{bindings.WeatherDescriptionIterator}", Object.class);
    AmxIteratorBinding iter = (AmxIteratorBinding)vex.getValue(AdfmfJavaUtilities.getAdfELContext());
    GenericType row = null;
    BasicIterator bIter = iter.getIterator();
    iter.getIterator().first();
    ArrayList employees = new ArrayList();
    for(int i = 0; i < iter.getIterator().getTotalRowCount(); i++)
    row = (GenericType)iter.getCurrentRow();
    String phone = "";
    String email = "";
    if(row.getAttribute("Description") != null)
    phone = row.getAttribute("Description").toString();
    if(row.getAttribute("WeatherID") != null)
    email = row.getAttribute("WeatherID").toString();
    setTempValue(phone + " " + email);
    iter.getIterator().next();
    catch(Exception e1)
    AdfException ex = new AdfException(""+e1.getLocalizedMessage(), AdfException.ERROR );
    throw ex;
    I get error :-> cant not find property bindings
    Edited by: user12190920 on May 7, 2013 5:48 AM

    Hi,
    You can try the below code. Make sure the WeatherDescription should be of type Tree binding
    ValueExpression ve1 =
    AdfmfJavaUtilities.getValueExpression("#{bindings.departments.collectionModel}", AmxCollectionModel.class);
    AmxCollectionModel model = (AmxCollectionModel)ve1.getValue(AdfmfJavaUtilities.getAdfELContext());
    Object[] myArr = model.getKeys();
    for (int x = 0; x < myArr.length; x++) {
    Object myObj = myArr[x];
    Map provider = (Map)model.getProviders().get(myObj);
    String deptName = provider.get("deptName").toString();
    Hope this article may help you - http://deepakcs.blogspot.in/2013/02/adf-mobile-iterate-through-all-rows-in.html
    - Deepak

  • ClassCastException with JDK7U5 while using Iterator.

    Hi All,
    While i am trying to iterate through a raw Collection (without generics) which contains my business objects using Iterator. It is throwing ClassCastException when i am casting the Iterator's next value with expected object.
    but when i replace Iterator with for(int i=0; i<collection.size();i++) loop its working fine and i am able to iterate the collection without any exception and i am able to cast my object with expected class type.
    I am not sure why this is happening with JDK1.7u5 while the same code(with iterator) works fine in JDK1.6u31.
    Please suggest me the solution or workaround for the same.
    Thanks .

    show your code.

  • How to use Iterator for SOAPBody

    The following is the content of my SOAPBody how do i use Iterator to get the output like :
    Name 1 : Price 1
    Name 2 : Price 2
    Name 3 : Price 3
    Name 4 : Price 4
    Name 5 : Price 5
    <SOAP-ENV:Envelope mlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
    <SOAP-ENV:Header/>
    <SOAP-ENV:Body>
         <items>
              <item>
                   <name>Name 1</name>
                   <price>Price 1</price>
              </item>
              <item>
                   <name>Name 2</name>
                   <price>Price 2</price>
              </item>
              <item>
                   <name>Name 3</name>
                   <price>Price 3</price>
              </item>
              <item>
                   <name>Name 4</name>
                   <price>Price 4</price>
              </item>
              <item>
                   <name>Name 5</name>
                   <price>Price 5</price>
              </item>
         </items>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    I got the solution so i would like to share with others
    Iterator it = soapBody.getChildElements();
    getContents(it,"\t");get the Iterator from the SOAPBody object and pass it to the getContents() method
    code for getContents() is as follow:
    public static void getContents(Iterator iterator,  String indent)
         while (iterator.hasNext())
              SOAPElement element = (SOAPElement)iterator.next();
              Name name = element.getElementName();
              System.out.println(indent + "Name is " + name.getQualifiedName());
              String content = element.getValue();
              if (content != null)
                   System.out.println(indent + "Content is " +     content);
              Iterator attrs = element.getAllAttributes();
              while (attrs.hasNext())
                   Name attrName = (Name)attrs.next();
                   System.out.println(indent + " Attribute name is " + attrName.getQualifiedName());
                   System.out.println(indent + " Attribute value is " + element.getAttributeValue(attrName));
              if (content == null)
                   Iterator iter2 = element.getChildElements();
                   getContents(iter2, indent + indent);
    } --- hasan
    SCJP
    http://www.myjavaserver.com/~hasstar

  • Reasons why to use Iterator for List rather than for loop ?

    when i use the iterator and for loop for traversing through the list. it takes the same time for iterator and also for for loop. even if there is a change it is a minor millisecond difference.
    what is the actual difference and what is happening behind the traversing list through iterator
    if we are using we are importing extra classes ...if we are using for loop there is no need to import any classes

    If you have an array-backed collection, like an ArrayList, then the difference between using an iterator and get() will be negligible.
    However, if you have a linked list, using get() is O(n^2) whereas iterator is O(n).
    So with an iterator, regardless of what your underlying data structure, a list of 100,000 elements takes 1,000 times as long to iterate over as a list with 100 elements. But using get() on a LinkedList, that same 100,000 element list will take 1,000,000 times as long as the 100 item list.
    There's no real benefit to ever using get()
    Side note: I've been comparing iterators to get(), not iterators to for loops. This is because whether it's a for or a while has nothing to do with whether you use an iterator or get(). The way I use iterators is for (Iterator iter = list.iterator(); iter.hasNext(); ) {
        Foo foo = (Foo)iter.next();
    }

  • How to create a table-like layout using Iterator?

    I want to render several items in a table format using an iterator. Can anyone guide me on how to line up the different columns, like in a table?
    I cannot use the built in table because I want to change the display later using javascript and the af:table component does not work with that.
    The table will be in a panelsplitter element. The code I have right now:
    <af:iterator id="i1"
                       value="#{bindings.DenormPlanLine1.collectionModel}"
                       var="row"
                       rows="#{bindings.DenormPlanLine1.rangeSize}">
                        <af:panelGroupLayout id="pg1" layout="horizontal"
                                             inlineStyle="width:800.0px;">
                          <f:facet name="separator">
                            <af:spacer width="5" height="1" />
                          </f:facet>
                          <af:outputText value="#{row.StartDate}"  styleClass="sDate"/>
                          <af:outputText value="#{row.FinishDate}" styleClass="fDate"/>
                          <af:outputText value="#{row.DenormWbsLevel}" styleClass="level"/>
                          <af:outputText value="#{row.DisplaySequence}" styleClass="dSequence"/>
                          <af:outputText value="#{row.ElementVersionId}" styleClass="elVersionId"/>
                          <af:outputText value="#{row.TaskType}" styleClass="taskType"/>
                          <af:outputText value="#{row.PercentComplete/100}" styleClass="percent">
                            <af:convertNumber type="percent" />
                          </af:outputText>
                        </af:panelGroupLayout>
                        <af:spacer width="100%" />
                        </af:iterator>

    User, please tell us your Jdev version!
    Check out this sample http://andrejusb.blogspot.de/2011/05/oracle-adf-11g-custom-table-pagination.html
    Timo

  • Check box in tabel view?when to use itereator and when to use table view

    hi,
    I want to have a check box along with the other 7fields  in the table view.
    when the checkbox is checked and the merge complete push button is clicked, the respective code for merge is to be executed.
    how can I do this?
    could anyone tell me hw to get a check boz in table view
    when to use a  iterator in BSP, how table view n iterator in comparision ae used or function/work.
    Regards,
    Pavan P.

    Hi Pavan,
    Table View is an BSP element used to display mass data in a layout similar to a table (table view).
    <b>Iterator</b>is an attribute to modify rendering row-by-row, and make it dependent on the clicked row. In this way, you define an action from a particular line. This action is defined in columnDefinitions or overWriteDefinitions.
    <htmlb:tableView id = "tvX"
                     headerText          = "Department List"
                     design              = "standard"
                     headerVisible       = "true"
                     width               = "30%"
         selectedRowKeyTable = "<%= selectedrowindextable %>"
         onRowSelection      = "MyEventRowSelection"
         sort                = "server"
         keepSelectedRow     = "TRUE"
         selectionMode       = "MULTISELECT"
         table               = "<%= i_dept %>" >
    </htmlb:tableview>
    In your <b> OnInputProcessing </b>, Use this Iterator table to get the data of selected records.
    IF selectedrowindextable[] IS NOT INITIAL.
    DESCRIBE TABLE selectedrowindextable LINES no .
    Rgds,
    Jothi.
    Pls do close the thread if ur problem is solved.

  • Tableview selection looks different when using iterator

    One more litte question about the htmlb:tableView (Design2003, content-style = "tradeshow", selectMode = "MULTISELECT").
    When you select a table line, the line is displayed with an orange background. However, if you use a tableView Iterator where you use a textView as the replacement_bee to display some text, this text is not displayed with an orange background, but with only an orange border and a white bacground.
    Is there anything I can do?

    I'm currently working on SP-Upgrade-Checks (47 to 54) for our web applications, and this is one of the things I've noticed.
    Got hold up because of some more urgent duties, but as far as I remember I dealt with part of it already successfully. There are still some open questions I have though, and I hope to get back to this thread as soon as I can make some clear statements about it.
    cheers,
    Max

  • How to use Iterator correctly to print out object attributes from  Vector ?

    Dear Java People,
    I have no compilation errors but am not getting output.
    I created a CD class and a Vector to hold all the CDs.
    I think perhaps I am using the Iterator incorrectly in the
    toSting() method. Below is the driver and CD class
    Thank you in advance
    Norman
    import java.util.*;
    public class TryCD
       public static void main(String[] args)
         Vector cdVector = new Vector();
         CD cd_1 = new CD("Heavy Rapper", "Joe", true);
         CD cd_2 = new CD("Country Music", "Sam", true);
         CD cd_3 = new CD("Punk Music", "Mary", true);
         cdVector.add(cd_1);
         cdVector.add(cd_2);
         cdVector.add(cd_3);
         Iterator i = cdVector.iterator();
         while(i.hasNext())
           i.next().toString();
    public class CD
       private String item;
       private boolean borrowed = false;
       private String borrower = "";
       private int totalNumberOfItems;
       private int totalNumberOfItemsBorrowed;
       public CD(String item,String borrower, boolean borrowed)
         this.item = item;
         this.borrower = borrower;
         this.borrowed = borrowed;
       public String getItem()
         return item;
       public String getBorrower()
         return borrower;
       public boolean getBorrowed()
         return borrowed;
       public String toString()
          return getItem() + getBorrower();
    }

    Dear InTrueT,
    The problem with trying to use
    System.out.println()is that it returns void and
    toString() requires a String be returned
    the error messaage says:
    "CD.java": Error #: 354 : incompatible types; found:
    void, required: java.lang.String at line 35
    your advice is appreciated
    NormanYou seem to have misunderstood. toString(), as you say, returns a String. System.out.println(), by a wonderful coincidence of design, accepts a String as a parameter. My suggestion was that you pass the output of one as the input to the other, thus displaying your String on the screen, as I had understood this to be your desire.

  • Detecting click ( single and double) on row (displayed using iterator)

    Hello All,
    I am using jdev 11.1.1.6
    I am displaying a list as below.
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    My requirement is, when user clicks on a row, that row should be detected in backend and those value will be used.
    My requirement is, On single click row should be detected(in backend/bean)
    On double click, the values is saved(in backend/bean).
    How can i detect single and double click on a particular row ?

    I have updated the code as below, single click and double click are getting detected on a row
        <af:resource type="javascript">
                function singleClick(){
                    alert("Single Click");
                function doubleClick(){
                    alert("Double Click");
        </af:resource>
                                   <trh:tableLayout>
                                        <af:iterator value="#{pageFlowScope.Bean.List}" var="temp" onclick="singleClick()" ondblclick="doubleClick()">
                                         <trh:rowLayout>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value1}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value2}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value3}"/>
                                          </trh:cellFormat>
                                          <trh:cellFormat>
                                           <af:outputText value="#{temp.value4}"/>
                                          </trh:cellFormat>
                                        </trh:rowLayout>
                                        </af:iterator>
                                      </trh:tableLayout>
    Now,
    suppose i have following values for some/any row,
    value1=20, value2="abc", value3=009, value4="Language" 
    How can i retrieve these values in java script (if in backing bean then very good)

  • Get ORA-32132 when dml on multiple rows using iterations

    I got the error ORA-32132: maximum iterations cannot be changed when I run following code. According to the error description, it's caused by The setMaxIterations is called after a setXXX method has been called. Actually in my code, the function setMaxIterations( ) is called before setXXXX( ) functions. From the result, you can also see that it stopped at setString( ). The setInt( ) works. Please help.
    #include "stdio.h"
    #include <occi.h>
    #include <string>
    using namespace oracle::occi;
    using namespace std;
    const int ArraySize=2;
    int main()
    try
    printf("Init the Env&Con....\n");
    Environment *env = Environment::createEnvironment(Environment::OBJECT);
    Connection *conn = env->createConnection("scott","tiger","TEST");
    Statement *stmt = conn->createStatement("INSERT INTO emp (id, ename) VALUES (:1,:2)");
    printf("Init ok.\n");
    // specify max iterations
    stmt->setMaxIterations(ArraySize);
    printf("set max iteration is OK\n");
    for(int i=0; i<ArraySize; i++)
    printf("set int\n");
    stmt->setInt(1, 130 + i);
    printf("set string\n");
    stmt->setString(2, "Test");
    stmt->addIteration();
    stmt->executeUpdate();
    conn->commit();
    conn->terminateStatement(stmt);
    env->terminateConnection(conn);
    Environment::terminateEnvironment(env);
    catch(SQLException &e)
    printf(e.what());
    return 0;
    Results:
    Init the Env&Con....
    Init ok.
    set max iteration is OK
    set int
    set string
    ORA-32132: maximum iterations cannot be changed

    Use the below function for strings before setString in your code.
    mStmt->setMaxParamSize(2,4)

  • How to use Iterator?

    Could someone explain to me how to use the Interactor?
    I need to use it just to create a line, but do not know if it's the right way I used.
    1 - In my page definition, In Bindings I added an action (create)
    2 - Adicioneium Iterator, and called it the parameters of my DataControl
    3 - I created a method when you click the button, follow the creation of the line.
    Something is missing? When I click the button nothing happens, no error and no positive result.
    Thank you!

    Oracle ADF Tips: create a new row in ADF
    Create, Edit and Delete operations in ADF Faces af:table component - YouTube
    Decompiling ADF Binaries: Create row on a clickToEdit table

  • How to use iterator in standard BSP application BT115QIT_SLSQ

    Hi experts,
    I am new in BSP and my requirement is to put a checkbox icon beside the actions column (that has 2 existing icons already) of BT115QIT_SLSQ enhancement. I read a lot of article about iterators but I believe most of them are used in custom BSPs as we all know that standard BSP uses standard classes as well, which we cannot modify ourselves without access keys. Can someone help me how to use it in standard BSP? Or is there other much appropriate method?
    Thanks and Regards,
    Louie

    Dear Pradeep,
    Find the below link which explains a simple data download to excel from a table view.
    www.sapt echnical.com/Tutorials/BSP/Excel/Index.htm
    Try to avoid the way your using in the BSP application and it is abdicable to use the standard methods / class available like "cl_bsp_utility"
    Hope this will be helpful.
    Regards,
    Gokul.N
    Edited by: Gokul on Oct 8, 2009 9:57 AM

  • Drag and Drop using iterator in ADF 11.1.1

    I am looking for a workaround for the following problem.
    <af:componentDragSource> returns an incorrect dragComponent value when dropped on a dropTarget when container elements are generated by an iterator.
    Below is sample code:
    in jspx file:
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 1"/>
                             <af:componentDragSource discriminant="activity"/>
                             <f:attribute name="draggedActivity" value="Drag object 1"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget1" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 1"/>
                             <af:spacer width="600px"/>
                             <f:attribute name="dropTarget" value="Drop target 1"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 2"/>
                             <f:attribute name="draggedActivity" value="Drag object 2"/>
                             <af:componentDragSource discriminant="activity"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget2" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 2"/>
                             <f:attribute name="dropTarget" value="Drop target 2"/>
                             <af:spacer width="600px"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout>
                             <af:outputText value="Drag object 3"/>
                             <f:attribute name="draggedActivity" value="Drag object 3"/>
                             <af:componentDragSource discriminant="activity"/>
                         </af:panelGroupLayout>
                         <af:panelGroupLayout layout="horizontal" id="dropTarget3" inlineStyle="background-color:#ffff00">
                             <af:spacer height="8px"/>
                             <af:outputText value="Drop target 3"/>
                             <f:attribute name="dropTarget" value="Drop target 3"/>
                             <af:spacer width="600px"/>
                             <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                 <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="activity"/>
                             </af:dropTarget>
                         </af:panelGroupLayout>
                        <af:spacer height="16px"/>
                        <af:iterator var="item" first="0" varStatus="stat" rows="0"
                                  value="#{projectToolbarBean.narrativeBean.testDnD}">
                            <af:panelGroupLayout>
                                <af:outputText value="Drag object #{item}"/>
                                <af:componentDragSource discriminant="test"/>
                                <f:attribute name="draggedActivity" value="#{item}"/>
                            </af:panelGroupLayout>
                            <af:panelGroupLayout layout="horizontal" id="dropTarget1" inlineStyle="background-color:#ffff00">
                                <af:spacer height="8px"/>
                                <af:outputText value="Drop target #{item}"/>
                                <af:spacer width="600px"/>
                                <f:attribute name="dropTarget" value="#{item}"/>
                                <af:dropTarget actions="MOVE" dropListener="#{projectToolbarBean.narrativeBean.dropTest}">
                                    <af:dataFlavor flavorClass="javax.faces.component.UIComponent" discriminant="test"/>
                                </af:dropTarget>
                            </af:panelGroupLayout>
                         </af:iterator>In bean:
        public Collection getTestDnD() {
            List items = new ArrayList<Integer>();
            items.add(1);
            items.add(2);
            items.add(3);
            items.add(4);
            items.add(5);
            return items;
        public DnDAction dropTest(oracle.adf.view.rich.event.DropEvent event) {
            if (event.getDragComponent() != null && DnDAction.MOVE.equals(event.getProposedAction())) {
                UIComponent dropComponent = event.getDropComponent();
                UIComponent dragComponent = event.getDragComponent();
                String dropped = "";
                String dragged = "";
                if(dropComponent.getAttributes().get("dropTarget") instanceof String){
                    dropped = (String) dropComponent.getAttributes().get("dropTarget");
                    dragged = (String) dragComponent.getAttributes().get("draggedActivity");
                else if(dropComponent.getAttributes().get("dropTarget") instanceof Integer){
                   dropped = dropComponent.getAttributes().get("dropTarget").toString();
                   dragged = dragComponent.getAttributes().get("draggedActivity").toString();
                System.out.println("The label of the dragged object is: " + dragged + ". the drop target is " + dropped);
                return DnDAction.MOVE;
            } else {
                return DnDAction.NONE;
        }Drag a 'drag object' from the hard coded top group and drop it on a yellow drop target in the same group.
    Output from System.out will be correct.
    Do the same for the second iterator-generated group. You will find that the 'dragged' value in the bean code returns the same value as the 'dropped' value. In other words, event.getDragComponent() is losing context and is replaced by the value of event.getDropComponent().
    Can anyone help fix or workaround this problem? I cannot replace the iterator with a forEach due to other requirements.
    Does anyone know if this issue exists in ADF 11.1.2?
    Thanks

    Sorry 1 correction on my earlier post.  Install iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16) NOT 12.1.0.71!
    Thanks Guys!  This fixed me up.
    I uninstalled
    - All  Apple Packages
    - Bonjour
    - iTunes
    - Quick Time packages
    Deleted the Apple, iTunes, & Quick Times folders:
    - c:\Program Files
    - c:\Program Files (x86)
    - C:\Program Data
    - C:\Users\%profile%\AppData\Local
    - C:\Users\%profile%\AppData\LocalLow
    - C:\Users\%profile%\AppData\Roaming
    Rebooted
    Sorry 1 correction on my earlier post.  Install iTunes 12.0.1.26 for Windows (64-bit) - iTunes64Setup.exe (2014-10-16) NOT 12.1.0.71!
    Installed the newest QuickTime 7.7.6
    and Bingo!  Hopefully the next iTunes release addresses the issue moving forward.
    Thanks Again!

Maybe you are looking for