Java5: Can't find a way to get rid of warnings about generic types

Hi all,
i have this method:
    public static void insert(List list, int index, Object obj) {
        list.add(obj);
        int j = list.size() - 1;
        for (; j > index; j--) {
            list.set(j - 1, list.get(j));
        list.set(index, obj);
    }I get 3 warnings. All about:
Type safety: The method add(Object) belongs to the raw type List. References to generic type List<E> should be parameterized
I can't find a way to rewrite this method (Java5), that i get no warnings compiling it and calling it with:
List<AnyClass> list = new ArrayList<AnyClass>();
list.add(new AnyClass());
AnyClass ac = new AnyClass();
insert(list, 0, ac);May be you know another way to insert an element to a List?
Thanks

Never tried it and do not have 5.0 installed to test
it, but what if you define the ArrayList as follows?
List<Object> list = new ArrayList<Object>();
That should get rid of the warnings.

Similar Messages

  • A program called "tudosearch" interferes with my Firefox - it always comes up when I try to open Firefox or if Firefox tries to call up another program. I can not find a way to get rid of it.

    When I try to open Firefox, a window comes up saying that Firefox can not run Tudosearch. I then have to exit this window before I can go on. It also comes up when I try to go to another website while in
    Firefox. I can not find the program "Tudosearch" on my computer therefore I can not remove it. Any suggestions?

    I have tried everything I could to fix this, but some things require actually being on Firefox, and since I cannot get on, I cannot click on the tabs to do it. I have even totally uninstalled firefox, and that has not fixed this. I still get the same message that firefox is running and I need to close it or restart (which I have also tried dozens of times). I have removed things like Java, and that has not helped either. If I cannot even get on line in firefox, how can I fix this. I am not crazy about using internet explorer, but right now, it is my only option. I even tried to start in safe mode, and the same message box pops up!

  • In addition to the FormsCentral subscription charge ($152.87 including tax) I was billed about the same time for $15.93. I can't find any way to get in touch with anyone from Adobe. The phone number I'm supposed to call is cut off on my invoice. Can someo

    In addition to the FormsCentral subscription charge ($152.87 including tax) I was billed about the same time for $15.93. I can't find any way to get in touch with anyone from Adobe. The phone number I'm supposed to call is cut off on my invoice. Can someone respond ASAP? Thanks

    I have forwarded your request to the support team that should be able to resolve this issue for you quickly. Expect to hear from them shortly.
    Andrew

  • Trouble with forwarding emails. Can't seem to find a way to get rid of previous senders' email addresses before myself forwarding on the email. I used to be able to do this before I upgraded. Any ideas?

    Can't seem to find a way to get rid of previous senders' email addresses before myself forwarding on the email. I used to be able to do this before I upgraded. Any ideas?

    Current Firefox versions have enabled a new build-in PDF Viewer and that viewer doesn't have all the features that the Adobe Reader has.
    You can change the action for Portable Document Format (PDF) from Preview in Firefox to use the Adobe Reader or set to Always Ask.
    *https://support.mozilla.org/kb/change-firefox-behavior-when-open-file
    You can set the pdfjs.disabled pref to true on the <b>about:config</b> page to completely disable the build-in PDF viewer and use the Adobe Reader instead.
    See also:
    *https://support.mozilla.org/kb/view-pdf-files-firefox-without-downloading-them

  • How do I remove snapdo, as I can't find a way to get into firefox settings to remove it.?

    I have tried just about everything, but I still can't stop snapdo from overriding firefox. I can't get into firefox settings to remove it as snapdo has taken it over and I cannot find a way in. Has anyone else had this problem and found a solution?

    See:
    *[[/questions/944832]]
    *http://deletemalware.blogspot.com/2013/01/remove-snap-do.html

  • I lost everything in the menue bar at the top of the page and I can't find a way to get it back

    I don't know what I did but suddenly I lost everything at the top of the page save for one line that contains "Bing" Yuck, MSN, news, video and stuff I don't and never use. But I can find a way to return Mozilla to its default format. I have removed firefox and relaoded it three times. Unfortunately that doesn't help
    == This happened ==
    Every time Firefox opened
    == about a week ago, right after I downloaded and was talking on the phone and not paying attention as I clicked aroudn

    In Firefox 3.6 on Windows you can hide the menu bar via "View > Toolbars" or via the right click context menu on a toolbar.
    Press and hold the Alt key down to bring up the menu bar.
    Go to "View > Toolbars" or right-click the menu bar or press Alt+V T to select which toolbars to show or hide.
    See also [[Menu bar is missing]]

  • I can't find a way to get app store back on my imac

    The App Store was deleted by an idiot and now, I can't seem to find anywhere to download it.  I tried to get the old update, but it won't work since my software is up to date (or so it says).
    Can anyone tell me how I can get my app store back?

    You're welcome.
    Glad to be of help.
    Try not to burn a hole in your wallet

  • I can not find a way to get a refund.

    I have went on the App Store to get a refund but the links take me in a circuitous route (App Store > iTunes Store > website, etc., etc. but the steps displayed on this page... http://support.apple.com/kb/HT1933
    ... do not appear for me. Instead they take me back to a FAQ list rather than allow me to comment on my problem or request a refund.
    How can I get a refund on an app that does not function as it was described.
    I have contacted the author directly but he said I must get the refund directly through the App Store since that's how I purchased it.
    Thanks for any info on this.
    Ron
    Message was edited by: RonL

    Thanks AnaMusic!
    That was the link that Apple should have made very prominent, but unfortunately, like so many sites, you have to click-and-click-and-click, etc. to find it.
    I think they do it so you won't ask for a refund.
    It would be so much better if they would simply allow the developers to post demos (as so many people have noted).
    Thanks again.
    Ron

  • Since my update, I can't adjust the volume from my keyboard...the volume keys have a locked symbol that shows when I press them.  I checked System preferences but can't find a way to get the lock off.  Thoughts?

    I can't adjust my volume from the keyboard volume controls... they seem to be locked.  I tried system preferences, but couldn't find how to "unlock" them.  Thoughts?

    Did you try unchecking this function?  It seems to work in reverse of what you would expect, or is that just my imagination?

  • Rted to but did not finish download of Page Plus but now instead of Mozilla home page I get PagePlus and cannot find a way to get rid of it or into mozilla.

    When i go into web browser I get PagePlus. When I ht home I get PagePlus. It is not in my Programs to uninstall it. Do I have to totally uninstall Mozilla?

        Hello RTM58,
    I'm sorry you haven't heard back about your ticket. The representative that opened the ticket is notified when it is completed, but we can check the status for you now. Please feel free to send me a direct message after you accept my follow request and send me a request. You can also dial 800-922-0204 and review the ticket with a technician.
    AndreaS_VZW
    Follow us on Twitter @VZWSupport

  • My search box in the upper right side of the screen changed from Google to Ebay without intentional action on my part and I have been unable to find a way to get rid of the ebay search tool and get google back.

    When I first went to do a search using the search box on the right side of the toolbar I noticed it had a different icon. It was so so small I did not recognize it as Ebay until I hit search and it was then I realized my search tool had somehow been changed. The only use my wife had made of the computer since the prior evening was to view an email from the president of a local charity sending an updated roster of officers. I did look at the user profile file and saw that it showed the profile changed as of 7:46 am which was when my wife looked at the email. I tried deleting the file but firefox would not run without it so I restored the file. Our internet security program is Avast.

    Here's a simple explanation of how to fix the problem:
    https://support.mozilla.com/en-US/kb/Search%20bar
    Worked for me today!! (Even when opening a new browser window.)
    Cheers!
    Shaunalei

  • How do I transfer files from a flash drive to iMac. I get a folder with "no name" which I can live with but I can't find any way to make the actual physical transfer of the files to the iMac.

    How do I transfer files from a flash drive to my new iMac?  I get a folder with "no name" that I can live with but I can't find a way to transfer the flass drive files to to iMac hard drive.

    What happens when you try to drag & drop the files?
    ~Lyssa

  • My Back arrow is missing from my Firefox toolbar and I can't find another way to go back. How can I get it back?

    My "Back" arrow disappeared from my Firefox toolbar and I can't find a way to go back to a previous page. How can I get it back on?

    Hey kayo410,
    Sounds like they might have accidentally been removed from the toolbar. The toolbar can be customized pretty extensively, so it's not an uncommon mistake. Take a look at the Knowledge Base article [[Back and forward or other toolbar items are missing]]. It will show you how to restore the buttons.
    Hopefully this helps!

  • I am getting this message from iTunes on my iMac: An error occurred while contacting the radio tuning service. Check your Internet connection, or try again later. Can't find a way to fix this. anyone hae any suggestions?

    Question: I am getting this message from iTunes on my iMac:
    An error occurred while contacting the radio tuning service. Check your Internet connection, or try again later.
    Can't find a way to fix this. Does anyone have any suggestions?

    Yeaaaah... I just powered up my G3 iMac... iTunes 7 on there... My iTunes on there can't do much. But it's still subscribed to one podcast that's still valid and working. If I try to use the radio, I get this message. I wager they changed urls and the like in the background years ago and this is just so old there's no longer any support for it.

  • Can anyone tell me how to get rid of tlb search? it unfortunately entered into my mac. Whenever I use safari, a pop-up window opens with some ads. Please help me to find a way to remove this malware.

    Can anyone tell me how to get rid of tlb search? It unfortunately entered into my mac. Whenever I use safari, a pop-up window opens with some ads. Please help me to find a way to remove this malware.

    You installed the "DownLite" trojan, perhaps under a different name. Remove it as follows.
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    /Library/LaunchAgents/com.vsearch.agent.plist
    Right-click or control-click the line and select
              Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.* A folder should open with an item named "VSearch" selected. Drag the selected item to the Trash. You may be prompted for your administrator login password.
    Repeat with each of these lines:
    /Library/LaunchDaemons/com.vsearch.daemon.plist
    /Library/LaunchDaemons/com.vsearch.helper.plist
    /Library/LaunchDaemons/Jack.plist
    Restart the computer and empty the Trash. Then delete the following items in the same way:
    /Library/Application Support/VSearch
    /Library/PrivilegedHelperTools/Jack
    /System/Library/Frameworks/VSearch.framework
    ~/Library/Internet Plug-Ins/ConduitNPAPIPlugin.plugin
    Some of these items may be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including any that have the word "Spigot" or "Conduit" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    This trojan is distributed on illegal websites that traffic in pirated movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect much worse to happen in the future.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the DownLite developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.

Maybe you are looking for

  • I have an ipad 1 and an iphone 4s, how do I manage these in iTunes given that they are different ios versions (5 and 6)?

    My iPhone 4s is on iOS 6 and that is fine (with various known issues of course). My iPad is using iOS 5 and does not support iOS 6, and here lies the problem. iTunes suggests updates to my Apps, some of which become iOS 6 only making them unusable on

  • Dynadock U3.0 freezes the display when connected

    I am using the dynadock u3.0 docking station. The display/laptop freezes every so often. It happens most often when I visit a website with flash video (CNN/Youtube) etc. I thought this has to do with Chrome/Flash so I uninstalled/reinstalled etc but

  • Apple Hardware Test software for late '07 Macbook?

    Where do I get the Apple Hardware Test software for a late '07 Macbook?  Original disk is long lost and it doesn't appear Apple has this up for download. The battery is not taking any charge, totally dead after 772 cycles.  But don't know if its the

  • Removing default music from Nokia 5300 track list

    Hi all. I have a really frustrating problem. I have a Mac and put loads of music onto my 5300 Xpress Music using Bluetooth, as I can't use Nokia's PC software. Anyways, the Micro SD card that came with the phone came preloaded with some short ring to

  • Mp4 file does not play when exported to swf?

    I am putting together an interactive flash file that I have created in inDesign (CS4). I have had no problems creating and exporting links, buttons etc, but when it comes to embedding video I am experiencing trouble..I have a video which I have conve