How can i sort a hashmap so that it can have duplicates

i need to sort a hashmap so that it can have duplicates.

How would you obtain the correct value, though? Suppose I add the values "fido", "rover", "mandibles", "fluffy" against the key "dog": How would you retrieve "fido"?
This goes against the grain of what a Map is for, what are you actually trying to do?

Similar Messages

  • How can I duplicate a control in a subVI using the reference?

    Here's what I want to do. I have a tree control in my main application. I add and delete items dynamically based on user input. If I pass my tree reference to a subVI, I can add, subtract and reorder the items in the tree and the changes are shown on the main tree. How can I duplicate the tree in the subVI? Would I simply pass the tree control in (which I'd rather not do) or is there some other way to accomplish this?
    Thanks in advance for any help.
    Gary

    Here's my attempt.  This VI uses a control reference of the old tree and generates a data structure that can be used by the "Edit Tree Items.Add Multiple Items to End" method to add contents to the new tree that should be identical to the contents of the original tree.  Note that this VI only works with LabVIEW 8.0 and later, since the afore-mentioned method is not available in previous versions.
    I hope this helps...also note that I saw some re-draw issues with LabVIEW 8.0, i.e. after the VI ran, I didn't see the tree displayed properly until I minimized/restored the window, or dragged another window over it.  I did not see the redraw issues in LabVIEW 8.2.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman
    Attachments:
    Duplicate Tree.vi ‏21 KB

  • HT5517 How can have full picture using mirrored image from iPad

    How can have full picture using mirrored image from iPad on my Apple TV airplay

    Welcome to the Apple Community.
    Mirroring won't fill the TV screen. The iPad has an aspect ratio of 4:3 and the iPhone 4S or prior an aspect ratio of 3:2, neither of these will fit exactly into a TV screen which as an aspect ratio of 16:9. The Apple TV will not zoom the mirrored image, because it may well cut off information which is situated at the top or bottom of the screen.
    You may wish to try each of the settings in ‘Settings > Audio & Video > Adjust for AirPlay overscan’ for the best setting that suits you.

  • HT2486 When you want to add another person from same company, how can you duplicate and then modify the card already entered?

    When usinf Mac Address Book and you have entered the information for one contact from a company, how can you duplicate the card so you can add another person from same company?

    I'm afraid the LU suffix is a new one on me.
    As long as you have all of the content in your library then that remove and sync warning shouldn't cause any loss of data, but it shouldn't be happening every time. It may pay to take the following steps to reset the connection between the two,
    Backup device.
    Restore as a new device.
    Restore the backup made earlier.
    Again, this assumes all content on the device is in your library. If that isn't the case see Recover your iTunes library from your iPod or iOS device first.
    tt2

  • How can I duplicate a photo in the Ipad photo program?

    HOw can I duplicate photos in the original ipad photo program? I wanted to blow up a part of a picture, but also keep the original.

    The Photos App keeps the original with editing added as changes to the original. You can always revert back to the original.
    Other photo editing Apps may also provide the capability to save the modified version with the changes incorporated. For example, Photo Editor

  • Hello, i have my iPhoto library on my macbook air. how can i duplicate this library on my new iMac?

    hello,
    i have my iphoto library on my macbook air. how can i duplicate this library on my new imac?
    thanks

    OS X: How to migrate data from another Mac using Mavericks

  • HT4061 I lost my iPhone I need serial number to find it how can have serial number??

    I lost my iPhone I need serial number to find it how can have serial?

    iOS: How to find the serial number, IMEI, MEID, CDN, and ICCID number

  • Need to know how to get serial number to ipod that i only have receipt on

    Need to know how to get serial number to ipod that i only have a receipt on

    How to find the serial number of your Apple hardware product

  • How to store data in hashmap so that it can be used by different methods.

    Hello,
    I have an ADF/JSF application and the database is DRM. The program gets data from DRM into this hashmap. Program needs this data frequently. Getting this HashMap is very resource intensive due to a lot of data it has.
    I want to get the data in HashMap once ( I can do this - no problem).  But where/how do I keep it so that different methods can just use this and not make individual trips to DRM? It may be a very basic java question but I seem to be stuck :)
    I am not very concerned about the HashMap part, it can be any collection - the question is of storing it so that it can be used over and over.
    Thanks,

    User,
    If I understand you correctly, you have a JSF application that needs to store data in a HashMap such that it can be accessed over and over? You could put the hashmap into an appropriately-scoped managed bean and access it from there. I'm not sure what a "DRM" is (a digital rights management database, perhaps, in which case it's a "database"), so there is something special about a "DRM" that we need to know, please share.
    John

  • How can i duplicate records from a flat file to a cube

    Hi all,
    i got the next problem, i m loading a flat file, fur example:
    Material KF1 KF2
    A 10 12
    B 25 30
    01 02
    I Need duplicate the records for material A and B but with the values of Not assign, in other words the result in the cube would be like this:
    Material KF1 KF2
    A 10 12
    B 25 30
    01 02
    A 01 02
    B 01 02
    How can i do this, i know this must be a rutine, but where in the star? final? expert rutine? and how would be the code to do it, help guys and thanks!

    you can use end routine to accomplish that...
    hope the below code helps...
    DATA : IT_RESULT_PACKAGE LIKE TABLE OF RESULT_PACKAGE.
    DATA : WA_RESULT_PACKAGE LIKE RESULT_PACKAGE.
    SORT RESULT_PACKAGE BY MATERIAL.
    IT_RESULT_PACKAGE[] = RESULT_PACKAGE[].
    LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
    READ TABLE RESULT_PACKAGE INTO WA_RESULT_PACKAGE WITH KEY MATERIAL IS INITIAL BINARY SEARCH.
    IF SY-SUBRC = 0.
    WA_RESULT_PACKAGE-MATERIAL = <RESULT_FIELDS>-MATERIAL.
    APPEND WA_RESULT_PACKAGE INTO IT_RESULT_PACKAGE.
    CLEAR WA_RESULT_PACKAGE.
    ENDIF.
    ENDLOOP.
    CLEAR RESULT_PACKAGE[].
    RESULT_PACKAGE[] = IT_RESULT_PACKAGE[].
    this code will be suitable only if the material as unique entry with initial value...
    else you would require to use a loop statement instead of the read statement which has been used...
    rgds, Ghuru

  • How can I duplicate an active tab in Firefox 5?

    I cannot find the 'duplicate tab' feature in Firefox 5. I used this feature a lot in 3, and I hope that I can find out how to do it again. Or that I can downgrade to 3.

    Firefox 4 later use a combined Stop/Reload/Go button that is positioned at the right end of the location bar.<br />
    During the page load process it shows as a Stop button and after the loading has finished the button is changed to a Reload button.<br />
    If you type in the location bar then that button becomes a Go button.<br />
    Middle-click the Reload button to duplicate the current tab to a new tab.<br />
    You can also copy a tab by holding down the Ctrl key and dragging the tab left or right on the tab bar.<br />
    You can open the URL in the location bar if you use Alt+Enter.

  • How do i remove a Synced device that i nolonger have access to

    I have several devices Synced together sharing passwords, internet history ect. and i have recently lost access to one of them.
    how can i remove this device without having access to it?
    I have looked at the FAQ page and logged into the Sync account page and have not been able to find how to remove a device without having access to it

    Tom Lockwood wrote:
    Would I still be able to see them on "find my devices" if I change my password?
    You might, some mac hardware will continue to transmit its location even after they have been wiped, the only way to remove the device from your find my phone in such circumstances is for the device to be logged into another iCloud account and enable find my phone under that account.

  • How can I duplicate a user?

    I have a small lab of Macs running Snow Leopard.
    There is an existing user on each machine (Student) and I want to create a duplicate of that user (Student 2) on each machine using ARD.
    I can see how to add a new user, but I'd like to duplicate the existing user with all the "bits and pieces" (dock icons, permissions, files, etc) of that user on each machine.
    I can't find any way to do that with ARD... or at least I can't find any place that this operation is documented.
    Any help would be most appreciated.
    Thanks!

    Ones you create the user you can copy the account from one user to another user
    ie:
    send unix command as root
    ditto /Users/Student1 /Users/Student2
    if you wanted to create the account and copy it, then you can do some thing like:
    dscl / -create /Users/Student2 <--- must not conflict with another user
    dscl / -create /Users/Student2 UserShell /bin/bash
    dscl / -create /Users/Student2 RealName "Student2"
    dscl / -create /Users/Student2 UniqueID "1015" <--- must not conflict with another user
    dscl / -create /Users/Student2 PrimaryGroupID 80
    dscl / -create /Users/Student2 NFSHomeDirectory /Users/Student2
    dscl / -passwd /Users/Student2 SamePasswordAsStudent1
    ditto /Users/Student1 /Users/Student2

  • My Ipod and laptop were stolen...how can I duplicate all my purchased items

    My ipod and laptop containing my Itunes library were stolen. How can I re-download my purhcased items without paying for them again. When I go into the store and check my download history and request available downloads I get a message saying all available downloads have been done for this account.

    You could try contacting iTunes Store Customer Service and in the circumstances you might be able to persuade them to sanction a second free download. There have been occasional reports in the iTunes forum of this happening, however just be aware that they are not under any obligation to do so. If you click on this link it'll take you to the support/contact page: Customer Service - iTunes Store Support

  • How do you delete a purchased song that doesn't have a delete option when swiping?  This was a freebie when I first purchased my pad

    How do you delete a purchased song that doesn't give you the delete option when swiping?  This was a free song when I first got my pad. Now I can't delete it. I only get the play option, or to download it again.  The song is "Twinkling Lights", I think that's right.
    Any help with this would be greatly appreciated.
    Thanks!

    I think it is in the cloud, so how do I delete it?  Also, I have IOS 7.1.1

Maybe you are looking for