How to put into treemap an obj that already  has a tree map?

i have A Course class that contains a treemap for student.
now i need another tree map to contain an array of Course.
Course has it own attributes...
I tried creating new instance of course
course= new Course(aRegistrationNo,Add,rmNo.);
CoursetreeMap.put(aRegistrationNo, Course);
but this dosent work. Everytime i enter a new Course record, the old student treemap will get deleted also.
How can i make it so that i can retrive the Course using aRegistrationNo key and the whole student record of the course as well?

ok..maybe i ask the question differently...
//initialization
SortedMap ConCollection = new TreeMap();
SortedMap MaidContracts = new TreeMap();
can i do this for the input?
public void AddAgency(String r){
reg=r;
ConCollection.put(reg, MaidContracts);
//reg is a user input String
//MaidContracts is another treemap containing a few values
============================================================
is this what i do to get the out put?
MaidContracts=(SortedMap)ConCollection.get(SelectReg);
for (Iterator e = MaidContracts.values().iterator(); e.hasNext(); ) {
cTemp = (Contract) e.next();
cTemp.getcId();

Similar Messages

  • How to install windows 8 on mac that already has a windows 7

    I tried to find an option in bootcamp about creating another partition, but obviously there isn't anything. I just want to ask if there are some way to install another system beside lion and windows 7. Thx..and i do have a 500GB usb drive

    On a Mac Pro in my case, to add D/E drive for another OS in existing Bootcamp Windows space if you have sufficient GBs, press Start button on Windows Desktop and key "computer management" into search box. In resulting Computer Management menu, Disk Management right-click on the C: space provides dropdown allowing you to Shrink the C: space by perhaps 60 GB, probably not less than 30 which will result in addition of D or E partition. Windows will format it Ntfs at this point and you can name the drive Windows 8 RP 64 or something.
    Be sure that you have copied the "product key" provided you on download page for Windows 8 RP
    ( http://windows.microsoft.com/en-CA/windows-8/download ). So now when you have your Windows 8 ISO Dvd/Flash? created - I used Windows 7 right-click on ISO download to create DVD-R.
    To install, you select this DVD via Mac's boot option menu. When install is done, you run Bootcamp updates as you did for existing Windows version. In my case, I only did first and last (Boot camp 3.1 and Bootcamp 4 or 5).
    Note: you can change the default Windows OS boot and menu time in "Advanced System Settings"->Startup and Recovery Settings Tab. When Windows is default/target boot in Mac OS setttings you see the Windows startup menu allowing selection of either 7 or 8 OS.
    After Bcamp updates there will be Windows updates and you should be safe with the installed Windows Defender which has been beefed up. You can get Windows Live including Mail, as you wish. Your Pics, Vids, Music can be accessd from the C: drive.
    To remove the 8 space, when you no longer want it (First be SURE that Windows 7 is the default OS Boot in Both OSs!!), in Disk Management, right click allows "Delete Volume". When done, you can then "Extend Volume" in Windows 7 area to get it back to what it was.
    If you want Windows Media Center which is not option in W 8 RP, you can add it as follows:
    1.Swipe in from the right edge of the screen, and then tap Search.
    (If you're using a mouse, point to the upper-right corner of the screen, and then click Search.)
    2.Enter add features in the search box, and then tap or click Add features to Windows 8.
    3.Tap or click I already have a product key.
    4.Enter this product key: MBFBV-W3DP2-2MVKN-PJCQD-KKTF7 and then click Next.
    5.Select the checkbox to accept the license terms and then click Add features.
    6.Your PC will restart and the Windows Media Center tile will be pinned to the Start screen.

  • How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the

    How do I get a PDF document put into an attachment form that I can drag to an e-mail.  Usually I get an icon showing an spiral note book which then becomes an attachment when I drag it to the e-mail, but occasionally it stays in PDF and prints out on the e-mail.  What have I done differently?

    Thanks again for the detailed instructions Srini!
    And I really hate to be a pest . . . but . . .
    Using your example and not modifying it, I get the e-mail form filled out correctly and the pdf attached, however, I'm not prompted to sign it.
    Any more clues?

  • I would like to know how do I install the brazilian keyboard into macbook air, keyboard with accents (Portuguese Language), I tried so many times how to put into it (Macbook Air). So, thanks for now! I'm waiting for it.

    I would like to know how do I install the brazilian keyboard into macbook air, keyboard with accents (Portuguese Language), I tried so many times how to put into it (Macbook Air). So, thanks for now! I'm waiting for it.

    After you go to system preferences/keyboard/input sources as suggested by sberman, click on the + button and scroll down to Portuguese and select that.  Over at the right you will see the choices Brazilian, Brazilian abnt, Portuguese.  You might want to add all three to see which you like best.
    The "Brazilian" layout is pretty useless.  It is identical to the US layout and the only way to make accents is via the option key shortcuts:  option + n, then o gives you õ.
    The Brazilian abnt and Portuguese layouts have dead keys for adding accents over at the right edge of the keyboard.  But these may not match what is printed on your keys.
    You may prefer to stay with the US layout.  On that you can get accented letters by just holding down the base letter and selecting what you want from the popup menu that appears.  Or you can use the option key shortcuts.
    Another option is the layout called US International PC, which has accent deadkeys on ~, ', etc.
    Which ever layout you want to use, you must select it in the "flag" menu at the top right of the screen.
    To see which key does what for any layout, use the Keyboard Viewer:
    http://support.apple.com/kb/PH13746

  • How do i move my itouch stuff to a 2nd hand (sister's) computer that already has an itouch registered on it

    Please help! In our house we have all move around with PC's and laptops now my husband and kids have to go back to they original one to get all the stuff in ITunes how do I move there I Pod Touch stuff to a 2nd hand (sister's/mum's) computer that already has an I Pod Touch registered on it
    Thanks in advance
    Debbie

    Hi thanks for that but all the music CD's we have copied to our I Pod Touchies are not on the new/next computer how do I get all the music ie CD's on the new/next computer?

  • How to use MobileMe family email acct created at my iMac on iPad 1 that already has free yahoo mail set up on it?

    How to establish and use MobileMe family email acct created at my iMac on iPad 1 that already has free yahoo mail acct set up on it.

    I don't know what the limit is for the number of email accounts that can be accessed with the iPad's Mail app if there is a limit, but it is definitely more than one email account.
    Add the MobileMe account - at Settings > Mail, Contacts, Calendars, select Add Account. Select MobileMe and follow the prompts.

  • How can I add the Blackberry my friend gave me to my account that already has my prepaid phone on it?

    How can I add the Blackberry my friend gave me to my account that already has my prepaid phone on it?

    A few questions to clarify your specific situation will help us to better help you...
    Do you want to swap phones and use the BlackBerry instead of your current phone?  I don't think you can add a line to a pre-paid account to use both - it would have to be two separate accounts.
    What model BB is it?  And is it Verizon branded?  It may or may not be usable on a pre-paid account.
    Finally, what is your current phone and account set up?  You may need to get a different pre-paid plan to use the BB, if it is usable on Verizon.

  • Can I put my ipod on a computer that already has another ipod on it without doing any damage?

    My ipod got the message "iTunes has deteced an ipod that appears to be corrupted......"
    I did everything suggested and nothing helped.  My ipod was working perfectly prior to my attaching it to the computer, which itunes didn't recognize.
    I reset everything, the ipod is now empty, and still the computer won't recognize it.
    Can I connect this to another computer that already has an ipod associated with it without causing any problems to the owner's ipod or the music libarary?
    If that computer recognizes the ipod, then my problem lies in my computer and not the ipod.
    Thanks

    It should work because I have 2 iPods connected to my iTunes and everything syncs perfect most of the time and with no corrupted sign, maybe it's your computer. iTunes is'nt the best either so it may also be iTunes that has the problem.

  • How can I sync my iPhone with my new macbook air that already has music on it?

    I need help! I have an Iphone 4 that has all my music on it but I recently got a macbook air that already has all my songs. I want to sync my phone with my itunes but it says i may not want to. What do I do?

    Iphone will sync with one computer at a time.  If you sync to another, then it will erase the current content and replace with content from the new computer.
    Make sure everything is on the new computer.

  • 3rd-party software to make RAID 1 (mirror) on a drive that already has data

    Is there software which lets you simply add a 2nd drive to an already working Mac and make a RAID 1 mirror without waiting for the following:
    - clone the internal drive to an external for backup
    - add the 2nd internal drive
    - erase both internal drives
    - make the RAID 1 set out of both drives
    - clone the data back to the RAID 1 from the external
    This works just fine. It just takes a long time and requires extra external drives to boot from and do the cloning.
    What I'm looking for is a utility that will reduce the process to:
    - clone to external for just-in-case backup
    - add the 2nd internal drive
    - use the utility to mirror the 2nd (new) drive to the pre-existing data on the 1st drive and make a RAID 1 mirror set out of them (without erasing them)
    - there is no step 4. there is no step 4! (ha ha ha)
    in short: to make an OS X RAID 1 without having to erase a drive that already has customer data with the Disk Utility or some other software
    I checked Made4Mac already - none of the listed partitioning tools seem to be able to make a RAID "in place". I'm assuming this is not easy or Disk Utility would already be able to do it.
    It's too bad the Disk Utility can only make a RAID 1 using blank, virgin drives. Maybe they'll fix it in Leopard. Can anyone from Apple comment?
    I know about SoftRAID - but it's $149 per seat. I'm looking for something I can use on customer machines over and over again, without having to sell them a software license - like Partition Magick or DiskWarrior.
    Thanks!
        RAID 1

    IKE-D-
    Why not use the CLI and do it that way? i don't know it AppleScript hooks into the terminal and/or can run terminal commands but that may be worth looking into as well.
    I would think that it would be a good idea to erase all your drives in the RAID at once and start fresh. Why not back up the internal to a pair of RAIDED external FW800 drives, add the second drive in the Mac, make the internal RAID by formatting both drives and then copy the external RAID back to the internal RAID? Oops, I know, now we have a step 4.
    Nobody from Apple ever comments here. We are all users, just like yourself, that just want to help.
    Luck-
    -DaddyPaycheck

  • Installing XI 3.0 on a LPAR that already has XI 3.0 installed on it

    Hello,
    I'm thinking about installing XI 3.0 on a LPAR that already has XI 3.0 installed.  Is there anything I should be aware of before installing the 2nd instance of XI on the LPAR.  Is this even a recommended practice?
    Thanks,
    Jeff

    To add to Patrick's suggestion....
    What I am suggesting is not the cause of the FLOWS_030000 user existing error, but could be another issue which caused your installation to fail.
    In your post, you said...
    This is the command i gave to configure from SQL prompt:
    @D:\Apex3.0\apexins.sql <Newly Create User> <Newly Created Tablespace> <Newly Created Tablespace> TEMP /i/
    You have specified an absolute path when running the apexins.sql script. In order for the installation to succeed, you must first change your working directory to the directory where you unzipped the apex_3.0.zip file and then run the script. This is because the apexins.sql script subsequently references other sql scripts, using relative paths.
    You have also not included a password in your command, was this just for purposes of the posting, or could this also be an issue, as in:
    @apexins password tablespace_apex tablespace_files tablespace_temp images
    Hope this helps,
    Anthony
    http://anthonyrayner.blogspot.com

  • I have a new computer from my father that already has his iphone content on it.  what do i need to do to switch my phone over from my old computer to the new one and have the new computer sync MY contacts and content to the new computer without erasing

    i have a new computer from my father that already has his iphone content on it.  what do i need to do to switch my phone over from my old computer to the new one and have the new computer sync MY contacts and content to the new computer without erasing my contact lists and purchased apps?

    okay from reading posts it seems if I transfer my backed up info from my old comp to the new one and erase my dad's phone's back up i could reset my phone and it would transfer all my old data back onto the phone, be linked to the new computer and i could proceed.  Where do i find the backed up info from my phone?

  • To delete Cost Element that already has posting.

    Hi,
    I need to delete Cost element that already has posting. I used KO04 error msg. KS133 Deletion is not possible (depend records exist in table COEP). Cummulative balance already zerorise.
    Thank you.
    Moderator: Please, search SDN

    Hi, it's better not to use in productive.
    See here IMG-Controlling-General Controlling-Production Start-Up Preparation-Delete Test Data-Delete Transaction Data  and then Delete Cost Elements

  • HT1373 Is it possible to transfer songs on iPod to a computer that already has an iTunes profile for someone else?

    Is it possible to transfer songs on iPod to a computer that already has an iTunes profile for someone else? I recently had my laptop stolen so I no longer have iTunes backed up on a computer. 

    mfulton77 wrote:
    I recently had my laptop stolen so I no longer have iTunes backed up on a computer.
    Do you mean you do not have a backup of your stolen computer?

  • Hi, i have sony vaio laptop that already has photoshop elements 12 installed once bought, now i am having a configuration error 12 and says that i need to uninstall and reinstall which i cant. what should i do? thanks!

    hi, i have sony vaio laptop that already has photoshop elements 12 installed once bought, now i am having a configuration error 12 and says that i need to uninstall and reinstall which i cant. what can i do without uninstalling?

    hi, i have sony vaio laptop that already has photoshop elements 12 installed once bought, now i am having a configuration error 12 and says that i need to uninstall and reinstall which i cant. what can i do without uninstalling?

Maybe you are looking for

  • IOS 7.04 Itunes error (1)

    I could do with a little help.  My iphone4 (not jailbroken) has been having an issue since i installed IOS 7.03.  The install crashed half way through and ever since, my phone just hasn't been right at all. It was working perfectly up to this point. 

  • Problem with the accounts

    Hi, I cannot add new account and modify the name of the other account, why? thanks for your support. Alessandro.

  • Why my TDS2014B scope can not communicate with signalexpress

    I have already installed LabView 2014,Signal express and VISA 4.6. Now i want my TDS2014 scope communicate with Signal Express, of course,I haved installed TDS2014's driver,it's a zip file,and extracted directly to the \instr.lib directory. but when

  • CVP Language change (English and option for other Language)

    Hi,      Currently in our IP IVR we give our callers the option to switch to spanish.  I want to do the same in CVP but I'm not sure how. I guess I could create an English page and a Spanish page so that if the callers enter the option for Spanish it

  • Giving my Old iPod to a Friend

    I have just got my new iPod 30GB, and am about to give my old Nano to my brother. He has his own music library and computer. I wnat to know is there anything I need to do in order to de-associate the Nano with me, so he can set it up and have his own