How can i add a hashmap to another hashmap without lossing the second one?

hi all
can anyone show me how to add a hashmap object to another hashmap object without lossing anything that was in the second one. thanks

hi all
can anyone show me how to add a hashmap object to
another hashmap object without lossing anything that
was in the second one. thanksDo you want to add the hashmap itself to the hashmap? If so:firstMap.put("someKey", secondMap); should do it. But I suspect you want to add all key/value pairs from the second map to the first, in which case the "putAll" method is what you're looking for. Note that the putAll method will replace the values in the first map with any values with the same key that are in the second map.
Good Luck
Lee

Similar Messages

  • My computer where my itunes library is stored is no longer accessible.  how can i add songs to my ipod nano without losing the songs already on it.

    The computer where i have my itunes library is no longer accessible.  How can I add new songs to my  Ipod nano without losing the song already on it?

    You will need that library copied from the old computer. If not, then you can take a look at this in getting 3rd party software to recover your library from the iPod. Syncing to a "New" Computer or replacing a "crashed" Hard Drive

  • How can I add new music to my ipod without losing the music already loaded on another computer

    I Can't load new music onto iPod with my new computer without losing all that is already there.

    That is correct, you can only sync your iPod to one library at a time.

  • How can I add an iPad to Apple Configurator without losing the user's settings, folders, etc?

    When attempting to add an iPad that has already been in use (for some time) by a particular user into Apple Configurator, I end up having to either wipe the iPad entirely as if it is a new iPad, or restore the user's settings and configuration from iCloud during mini-setup. It seems to be one choice or the other.
    Is there a way to add the "old" iPad into Apple Configurator for management purposes yet still be able to restore the user's settings from iCloud? That is - items like: folders, pictures, email settings, app data?

    nsdjoey wrote:
    theAntioch wrote:
    This isnt true. Connecting an unsupervised device to configurator and supervising it will wipe the device, there is no way around that. You can attempt an iCloud restore from here, but anything not backed up prior to supervising the device will be erased when supervising it. I have never tried to restore data from an unsupervised iPad so I have no clue if everything will come back.
    Let me clarify... You can successfully restore an iCloud backup of an unsupervised iPad to a new (i.e. different) iPad and have it Supervised with data intact. The process below will allow Configurator to Supervise a device without wiping it when an iCloud backup from a different unsupervised iPad is restored to it.
    Try it… Get 2 new unsupervised iPads… we'll call them iPad "A" and iPad "B." Take iPad "A" and install a few apps, take a few photos, change the background, create a new document in Pages, etc. Run an iCloud backup of iPad "A" using your Apple ID. This is our unsupervised backup of iPad "A."
    Now take new unsupervised iPad "B" and start running through the setup assistant. When you get to the restore screen, choose to restore from iCloud backup. Log in with your Apple ID. Select the backup for iPad "A." The backup will restore and then the iPad will restart. Once it restarts, you get to a "Hello" screen on the iPad. At this point, plug the iPad into your Configurator computer. On the Prepare screen, turn Supervision ON and select "Don't restore backup." Click Prepare.
    Configurator will not wipe the iPad. It will run through the supervision process but not wipe it. Once complete, you'll see that iPad "B" is now exactly the same as iPad "A", but if you go to Settings -> General -> Profiles on iPad "B" you will see a Supervision profile installed.
    The key here is to use a different iPad from the originally backed up iPad. You can't restore the backup of iPad "A" to iPad "A" again and supervise it without wiping it. But you can take the backup of unsupervised iPad "A" and restore it to iPad "B" and retain apps, data, and settings of iPad "A" but with the Supervision profile.
    Hope this clarifies things!
    ~Joe
    I see where your going with that. I dont have any way to reproduce this scenario in my environment, but I will take your word for it that this works. I have only ever plugged in an unsupervised device to configurator and gone through the setup, which always wipes the device. If your saying theres a way around that you should give that a shot OP.

  • How can i add music to my iPod 4 without removing the music that's already there ?

    I want more music on my iPod 4 , and my dad has a lot of music that I like . We have one of those computers where there can be more than one user , so each of my family members have their own user account and they have different itunes and whatnot . Well I'm trying to add some of my dad's music onto my iPod but it's saying that if I do that , then I'll be having to remove my current music and sync my dad's . I don't want that , so is there a way I can keep my music and add his ?

    SHARING iTunes MUSIC
    http://macmost.com/five-ways-to-share-music-in-itunes.html

  • How can I add a field to a Repeating Frame in the body of a 9i Report

    How can I add a field to a Repeating Frame in the body of an Oracle 9i Report whose source is in a higher group?
    I want to change an Oracle 9i report. The report has no header or trailer but only a body. The body has the parent frame fields & a repeating frame with four fields, A, B, C & D. They all seem to be in one group. I want to add another field E to the repeating frame whose source is from the 'header'.
    I added the field & created a boiler plate & then added the new field, E to the original group A, B, C & D. In the Property Inspector for the field, I pointed the source to the source column in the main query. However, when I run the report, I receive the error "Invalid body size". Some notes on Metalink indicate that this could be due to margins being out of the printable area.
    Moreover, after making the changes & after having unsuccessfully run the report, when I try to open the Page Layout for the report, I get no details.
    Thanks,

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • How can I add a new message(custom text message) to the holiday approval em

    How can I add a new message(custom text message) to the holiday approval email-notification sent to the manager?
    TIA

    The answer is 'not very easily', unless the information you want to display is the employee's leave balances. In 12.1.3 Oracle have delivered functionality that allows you to include the leave balances in the approval notifications out-the-box, ie, without customization.
    For any other information you're probably going to have to customize the standard delivered HRSSA workflow. Within this workflow, the Leave of Absence functionality uses the Notify Approver (Embedded) (HR_APPROVER_NTF) notification. The body of this notification is set to the Notify Approver (Embedded) (HR_NTF_EMBEDDED_REGION) attribute. This in turn defaults to:
    JSP:/OA_HTML/OA.jsp?OAFunc=-&HR_EMBEDDED_REGION-&NtfId=-&#NID-
    So essentially you can change the HR_APPROVER_NTF notification. The problem with changing this notification is that it's generic - it's used for all SSHR functions and not just Leave of Absence. That means you have to make other, more substantial, customizations to the workflow to ensure the changes you make only applies to LOA.
    The other option is to personalize the review page (ie, the region referenced in &HR_EMBEDDED_REGION) to include whatever messages you want. But that means they'll appear on the Review page and all LOA approval notifications and that might not be what you want.
    It's usually better to live with what Oracle deliver and find an alternative solution! What's the content of the message you want to include?

  • After creating a new playlist in iTunes, how can I add my entire music library --at once-- to the new playlist. I want to download all my music from Icloud at once on my Macpro

    After creating a new playlist in iTunes, how can I add my entire music library --at once-- to the new playlist. I want to download all my music from Icloud at once on my Macpro

    You have two separate questions here...
    To get all your music into one playlist, select Music in the sidebar and click the Songs view at the top. Then, highlight all the songs and drag them into your playlist.
    I don't know if it's possible to download all Purchased content (or do you mean iTunes Match content?) at once; try a few Google searches.

  • How can I add a language on pages (Greek) to check the spelling when that language is not on the list?

    how can I add a language on pages (Greek) to check the spelling when that language is not on the list?
    I can see other languages available for spelling check, but not Greek and I dont see how to add it.
    I have added the Greek keyboard on the Mac, so I can write in Greek , but I dont know how to check the spelling in Greek on pages

    You can try to add a 3rd party spellchecker
    http://milaraki.com/blog/2010/11/greek-spelling-at-pages-how-to/

  • How can I add an attachment to an email without showing it in the body of the email?

    How can I add an attachment to an email without showing it in the body of the email?

    1. You must open attachment first
    2. Tap the square with arrow on top right and select mail
    3. Compose your email

  • How can I add members to a role by script in the tabular model?

    How can I add members to a role by script in the tabular model?  I have the role set up, and I have a security table created that contains the domain/userid of all of the users that I'd like to add to that role.  Can this be done by script rather
    than manually?  

    <Name>ReadAllRole</Name>
    <Members>
    <Member>
    <Name>xxxxxxx\xxxxx</Name>
    <Sid>x-x-x-xx-xxxxxxxx-xxxxxxxxxx-xxxxxxxxx-xxxxx</Sid>
    </Member>
    </Members>
    Where would I find the Sid to add the members? 

  • I have and Ipod touch, and new computer. How can i add all purchased and non purchased songs? The old computer with the original library is dead. HELP

    I have an  ipod touch 3rd  generation and a new computer. How can i add all purchased and non purchased songs into the new computers itune library? The old computer is dead! Will not even turn on. Help!!!!!!!! I'm going crazy.

    Look into downloading some type of iRip software! Allows you to transfer music from iPod to iTunes.

  • How can I sync my iPod with my computer without deleting the songs that are on my ipod

    how can I sync my iPod with my computer without deleting the songs that are on my ipod

    See this post by forum regular Zevoneer on transferring files from the iPod to your computer.
    tt2

  • How can i transfer iPhone 3G photo to iPhoto without repeating the same photo to iPhoto?

    How can i transfer iPhone 3G photo to iPhoto without repeating the same photo to iPhoto?

    Sorry, you question doesn't make sense. If you're trying to import photos, in your camera roll, to iPhoto, iPhoto doesn't import them twice.

  • How can you upload photos to FaceBook from iPhoto without using the sync where is deleted in iPhoto it will be deleted in FaceBook

    How can you upload photos from iPhoto to FaceBook without having the sync where if you delete from iPhoto you delete

    I think you have to have the files on your HD. So either put them in iPhoto or copy them to a folder in Finder, and from there you can upload to Facebook.

Maybe you are looking for

  • Change the default language of an existing SAP Portal

    Hi, Our SAP Portal works with two languages, Spanish and English. The default language is Spanish, but since the company is becoming more international, we want to set the default language to English. Need to know if you can change the default langua

  • Firewire 800 and mbp 2011

    I have a new macbook pro 2011 15" i7 2.3, i'am also using a western digital USB 2.0 & FW800 external 2.5" drive that works without problems with my previous macbook pro (early 2007) and with my current iMac (2010) using the fw800 port. Now every time

  • FILTER FOR A FIELD  IN TABLE CONTROL?

    DEAR GURUS,    I HAVE A REQUIREMENT WHERE IN I HAVE TO FILTER A FIELD IN TABLE CONTROL? PLEASE HELP? Moderator message - Please ask a specific question and do not use all caps - post locked Edited by: Rob Burbank on May 4, 2009 4:27 PM

  • Installed Acrobat 9 Std on 3 PCs

    hello i installed Adobe Acrobat 9 Standard unwittingly on 3 pcs. then i uninstalled it again on the last pc, without deactivating  the licence. now it says on the two other pcs, that the key is not valid, because it has been used to often and i shoul

  • How to implement Com-Objects?

    Hello, I use an ActiveX software which should be implemented in LabView. Now I want to know, if it is possible to implement Com-Objects from this ActiveX software in my LabView Application. When it is possible, where can I find this Com-Objects? Of c