How do I transfer from one ArrayList to another -

Hi
Basically what I want to do is transfer from one arayList to another using an iterator to iterate of the list and transfer certain entries to another - one is called lots, the other is called unsold.
I don't want help with trying to get the right fields to transfer at the moment I'm just trying to get it to transfer EVERY entry, which I cant seem to to with this while loop
public ArrayList getUnsold()
       Iterator it = lots.iterator();
        while(it.hasNext()) {
                Lot lot = (Lot) it.next();
                unsold.add(lot.getDescription());
                return unsold;With the above all I seem to get is the first item in the 'lots' list to transfer even though theree are 3 items that need to be transferred...
I have declared all arraylists and everything on this level works I just cant transfer items over properly...
Any help is most appreciated.
-greg

Add these print statements (and others you think might help) to help you see what's going on: public ArrayList getUnsold()
       Iterator it = lots.iterator();
        while(it.hasNext()) {
                Lot lot = (Lot) it.next();
                System.out.println(lot);
                System.out.println(lot.getDescription)());
                unsold.add(lot.getDescription());
                System.out.println(unsold);

Similar Messages

  • How do I transfer from one computer to another?

    Good afternoon.
    I just purchased a new computer with the new iweb 09. My website is up and running and was created with my mac air computer. Now I want to transfer the air file to my desktop iweb program. Your assistance would be very much appreciated.
    I have downloaded from my mobile me account my website information. How do I open this with my iweb 09 so I can resume updating my website?
    Thank you for your patience and thank you for your help.
    Stan

    Choose Go to Folder from the Finder's Go menu on the old computer, provide ~/Library/Application Support/iWeb/ as the path, and move the Domain item to the corresponding location on the new computer.
    (46965)

  • Getting error in file transfer from one system to another system

    Hi All
    One of my client (User) wants to transfer his file from  SAP R/3 System SAP XI system. He is using a customize t-code ZFIR0325 (Trial balance report transfer to Hyperian System). When user execute the  program he is getting error "File Transfer Failed due to Network chk with Admin"
    I checked with Network team but they said it is okay from their side. We also check for authorization but there is no issue regarding authorization.
    Name of File Path of Aplication Server, XI destinaion and XI directory entered by user is correct.
    We also put authorization trace in XI System to RFC User (In file transfer from one system to another system this RFC User is geeing Used) but no authorization issue was found.
    Please help me to resolve this problem. I any detail require I will provide the same.

    Guruprasad Wrote:
    He is using a customize t-code ZFIR0325 (Trial balance report transfer to Hyperian System).
    We also put authorization trace in XI System to RFC User (In file transfer from one system to another system this RFC User is geeing Used) but no authorization issue was found.
    Firstly, no one in the community can answer on how a custom transcation code and a program associated with it behaves.
    If there are no authorization issues in the system, you have to look at the exact error message. Look if your XI system is allowed to receive files from the SAP system.
    Unfortunately, you should do some more home work before putting your question here. If everything is fine and configured correctly, then the issue might be with the program.
    Regards,
    Raghu

  • How to transport objects from one server to another server?

    How to transport objects from one server to another server.ie..from development to testing sewrver....

    Hi Manoj,
    Check these links
    http://help.sap.com/saphelp_nw2004s/helpdata/en/93/a3a74046033913e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/5e56006c17e748a68bb3843ed5aab8/frameset.htm
    Transporting Objects IR ID using CMS
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f85ff411-0d01-0010-0096-ba14e5db6306
    http://help.sap.com/saphelp_nw2004s/helpdata/en/e1/69a740aa053a13e10000000a155106/frameset.htm
    You can choose either File transfer methor or CMS. File transfer method is the simplest.
    Sachin

  • File transfer from one system to another system

    How can I use ODI to do file transfer from one system to another system ?
    Do I need to create Models or I have to simply use Jython procedure/script to do the same ? Kindly help. I have done DB to DB using Knowledge Modules. But I am not able to understand this piece.
    Kindly help.

    If you are asking about file transfer use ODI FTP tool to do it. If you are asking about file transformation..
    You can not do file transformation directly in ODI like we do in any other ETL tool like data stage or Ab Initio.. File transformation in ODI can be done using staging database in an interface(i.e ELT way).
    Create source and target data stores for the file to be transformed. Create an interface using File to SQL LKM to load the file into staging database and then use SQL to File Integration knowledge module.
    Thanks,
    D

  • How to move materials from one sloc to another sloc  materials are more tha

    Hi,
    Can any one help me on this issue How to move materials from one sloc to another sloc  materials are more than 1000
    and from existing sloc to new sloc which is Hum managened i need help onthis issue thanks

    hi
    use T-code: MB1B Transfer Posting
    Movement type:
    311 Transfer posting storage location to storage location in one step
    The quantity is transferred from unrestricted-use stock of the issuing storage location to unrestricted use in the receiving storage location.
    Possible special stock indicators: E, K, M, Q
    313 Stock transfer storage location to storage location in two steps - removal from storage
    The quantity is transferred from unrestricted-use stock of the issuing storage location to stock in transfer in the receiving storage location.
    Possible special stock indicators: None

  • The float in windows option is grey and not accessable ? How can I copy from one image to another ? Elements 11

    The float all in windows option is grey and not accessible ? How can I copy from one image to another ? Elements 11

    You really are not getting this.
    "I guess I am still completely shocked that as a parent we can't download something for everyone to use."
    Why do you continue to think this although we keep telling you that this is not the case.
    You do NOT have to purchase anything twice.  You can share the music with as many ipods as you like in your household.
    The ipods are designed to sync with your computer regularly.  You should have been syncing these other ipods with your computer all along, thus transferring the purchases to your computer where that music can be synced to as many ipods as you like.
    Take on of the ipods with the music in it.  Open itunes on your computer.  Plug in the ipod.  Do not sync.  Click File>Transfer Purchases  This will transfer the purchases from the ipod to the computer.  Make sure that you have authorized your account on the computer:  here are directions for that. http://support.apple.com/kb/HT1420
    Unplug the ipod.
    Plug in the other ipod with purchased music.  Do not sync.  Click File>Transfer Purchases  This will transfer purchases from the ipod to the computer.
    You can now plug in any of the ipods, select what you want to sync and sync.
    Have a look at the manual for the ipod.  http://manuals.info.apple.com/en_US/iPod_touch_iOS4_User_Guide.pdf

  • Vendor Open items transfer from one Recon to Another recon

    We have wrongly maintained one recon account in Vendor. 
    Is there any way to trnasfer Vendor Open items transfer from one Recon to Another reconciliation account..

    Hi,
    The best way is to transfer the items from old to new reconciliation account.
    Please use the following entries to transfer.
    1. Dr Vendor a/c(Old recon a/c)
        Cr Vendor clearing a/c
    After nullifying the balance in old recon account, here chage recon in the master.
    2. Dr Vendor clearing a/c
        Cr Vendor a/c(New recon a/c)
    F101 only post the adjustment entry at period end and reverse the same entry in next period. So, transferring the items is the best method. If you have volume of data, then create a LSMW for this.
    Rgds
    Murali. N

  • How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    How do I move from one website to another using Safari, while still allowing Pandora to provide music in the background? It seems that when ever I open a new URL, I lose Pandora.

    Try running Pandora in its own tab and leaving that tab open (Safari 7.1.5, OS 10.9.5).  I don't have Pandora to try this, but it works for me otherwise.
    Good luck
    srb

  • OBIEE 11g How to pass variable from one prompt to another prompt in dashboard page.

      How to pass variable from one prompt to another prompt in dashboard page.
    I have two prompt in dashboard page as below.
    Reporttype
    prompt: values(Accounting, Operational) Note: values stored as
    presentation variable and they are not coming from table.
    Date prompt values (Account_date, Operation_date)
    Note:values are coming from dim_date table.  
    Now the task is When user select First
    Prompt value  “Accounting” Then in the
    second prompt should display only Accounting_dates , if user select “operational”
    and it should display only operation_dates in second prompt.
    In order to solve this issue I made the
    first prompt “Reporttype” values(Accounting, Operational) as presentation
    values (custom specific values) and default presentation value is accounting.
    In second prompt Date are coming from
    dim_date table and I selected Sql results as shown below.
    SELECT case when '@{Reporttype}'='Accounting'
    then "Dates (Receipts)"."Acct Year"
    else "Dates (Receipts)"."Ops
    Year"  End  FROM "Receipts"
    Issue: Presentation variable value is not
    changing in sql when user select “operation” and second prompt always shows
    acct year in second prompt.
    For testing pupose I kept this presentation
    variable in text object of dashboard and values are changing there, but not in
    second prompt sql.
    Please suggest the solution.

    You will want to use the MoveClipLoader class (using its loadClip() and addListener() methods) rather than loadMovie so that you can wait for the file to load before you try to access anything in it.  You can create an empty movieclip to load the swf into, and in that way the loaded file can be targeted using the empty movieclip instance name.

  • How to include iview from one page to another using FPM

    Dear experts
    using ECC6 NetWeaver 7
    I have followed this WIKI guide step by step.
    How to include iview from one page to another using FPM?
    https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=118423928
    On step 4 I couldnu2019t create an Iview based on view u201Cpersonal datau201D u2013 it was not possible.
    The view wasnu2019t there (in comprehend to the  WIKI)
    What could be the reason?
    I have full authorization on the portal.
    Thank in advance for your help.

    Please check this.
    Re: Organizational History iView
    /thread/370447 [original link is broken]
    Regards,
    Sandip

  • How to move value from one tlist to another tlist in same form?

    how to move value from one tlist to another tlist in same form on button press?
    Same like in data block wizard when we select value from 1st list it will go to 2nd list and can be move back. Please help i am new to forms .
    Regards

    just call the following proc in your add & add all buttons. Reverse the code for REMOVEs
    this proc will move one item at a time from list_item1 to list_item2.
    PROCEDURE add_an_item
    IS
      v_list_count    NUMBER;
      v_item1_label  VARCHAR2(60);
    BEGIN
      IF :list_item1 IS NOT NULL THEN v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
          IF v_list_count >= 1 THEN FOR i IN 1..v_list_count
          LOOP
             IF   :list_item1    = Get_List_Element_Value('list_item1', i)
             THEN
                  v_item1_label := Get_List_Element_label('list_item1', i);                 
                  Add_List_Element('list_item2',1,v_item_label,:list_item1);         
               Delete_List_Element('list_item1',i);
               Exit;
             END IF;
          END LOOP;
           END IF;
       END IF;
    END;
    *********************************************************************************this proc will move all items from list_item1 to list_item2.
    PROCEDURE add_all_items
    IS
      v_list_count NUMBER;
      v_item_label VARCHAR2(60);
      v_item_value VARCHAR2(60);
    BEGIN
    v_list_count := nvl(Get_List_Element_Count('list_item1'),0);
    IF    v_list_count = 1 AND Get_List_Element_Value('list_item1', 1) IS NULL THEN NULL;
    ELSIF v_list_count >= 1 THEN
           FOR i IN 1..v_list_count
           LOOP
            v_item_value  := Get_List_Element_Value('list_item1', i);
            v_item_label  := Get_List_Element_label('list_item1', i);       
            Add_List_Element('list_item2',i,v_item_label,v_item_value);
           END LOOP;
           clear_list('list_item1');
    END IF;
    END;I added [ code ] tags to make this easier to read.
    Message was edited by:
    Jan Carlin

  • How to move iTunes from one user to another on the same Windows 7  computer

    How to move iTunes from one user to another on the same Windows 7 computer? Thanks, Bob

    Move the iTunes library to a shared area and then into the desired location. If this isn’t the default one, launch iTunes with the Shift key held down and choose that library.
    (122379)

  • How to play song from one iPhone to another iPhone via Bluethooth?

    How to play song from one iPhone to another iPhone via Bluethooth and AirPlay?

    You don't. Such is not supported.

  • How to forward alert from one user to another user and how to reject?

    Hi everybody.
    How to forward alert from one user to another user and how to reject and how to complete alert?
    Regards,
    Vinay.

    What alert are you talking about? Which version of BOE / Edge do you use?

Maybe you are looking for