Clear list

how can i clear list compleatly
there are 2 methos remove and removeAll but remove all ask fo collection as parameter
let say i have list of strings
ArrayList<String> myList = new ArrayList<String>()
myList.removeAll(/*????*/); or may be ther is better way to clear the list compleatly ??
what i did i creat for loop and remove elment by element but at the end i get this error
Exception in thread "main" java.util.ConcurrentModificationException
     at java.util.AbstractList$Itr.checkForComodification(Unknown Source)
     at java.util.AbstractList$Itr.next(Unknown Source)
     at model.Client.clearPasket(Client.java:99)
     at inputAndOutput.ProductInput.confirmDeleting(ProductInput.java:92)
     at inputAndOutput.ProductInput.statusAction(ProductInput.java:65)
     at View.OrderAssistance.showallcategories(OrderAssistance.java:87)
     at View.OnlineOrder.main(OnlineOrder.java:13)

If there's nothing else that has a reference to that list, you're probably better off just creating a new one. It's not likely to make a big difference, but it can give slightly better GC performance.

Similar Messages

  • After clicking Clear List in Firefox downloads, Firefox will not show any downloads in the list how do I fix this?

    Firefox version 5
    I had numerous items int the downloads window. I clicked clear list and it did. Now when I download something, it flashes for just a second in the downloads window and then disapears. The file is actually downloaded to the downloads folder.

    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Toolbars -> unselect All Unwanted toolbars
    -> go Tools Menu -> Clear Recent History -> ''Time range to clear: '''select EVERYTHING''''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies & Cache''' -> click "Clear Now"
    -> go to Tools Menu -> Options -> General -> place Checkmark on "Show the Downloads window when downloading a file" -> select Radio Button option2 "Always ask me where to save files"
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Privacy -> History section -> ''Firefox will: '''select "Use custom settings for history"''''' -> REMOVE Checkmark from "Permanent Private Browsing mode" -> place CHECKMARKS on:
    1) Remember my Browsing History 2) Remember Download History 3) Remember Search History 4) Accept Cookies from sites -> select "Exceptions..." button -> Click "Remove All Sites" at the bottom of "Exception - Cookies" window
    4a) Accept Third-party Cookies -> under "Keep Until" select "They Expire"
    -> REMOVE CHECKMARK from CLEAR HISTORY WHEN FIREFOX CLOSES
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> Click OK on Options window
    -> click the Favicon (small drop down menu icon) on Firefox SearchBar (its position is on the Right side of the Address Bar) -> click "Manage Search Engines" -> select all Unwanted Search Engines and click Remove -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious Extensions (Add-ons) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons later. Check and tell if its working.

  • TS3999 In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ event

    In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ events?
    Better yet... as there's a lot of "wasted" space w/ too large Month title and empty space surrounding the Month title above and too much space surrounding the month/year slider bar below, how can I minimize these to allow me more usable / valuable calendar "contents" so I don't need to waste so much time clicking "more" just to see the bottom of the truncated third event and find out there are no 4+ events posted that date?  i.e. more "user-friendly" presentation?
    Thx!
    [email protected]

    In MONTH, (PC) iCal only clearly lists 2 items a day. The 3rd item is "faded" and bottom portion cut off, w/ a "more" triangle in the lower-right corner. How can I expand (vertically) so the 3rd line posts clearly, and ONLY shows "more" if 4+ events?
    Better yet... as there's a lot of "wasted" space w/ too large Month title and empty space surrounding the Month title above and too much space surrounding the month/year slider bar below, how can I minimize these to allow me more usable / valuable calendar "contents" so I don't need to waste so much time clicking "more" just to see the bottom of the truncated third event and find out there are no 4+ events posted that date?  i.e. more "user-friendly" presentation?
    Thx!
    [email protected]

  • Creation of Supplier Clearing List could not be finished

    Hello everyone,
    since a couple of months there is a problem while creating the supplier clearing list after receiving an ORDERS message. It seems that the flag SELFLAG in table /IDEXGE/SSCLISTA is not been set after creating the list items in table /IDEXGE/SSCLISTI.
    After running the transaction /IDEXGE/TDUEDATE_REP to send the SCL, a message with number /IDEXGE/EQS_DATEX134 appears.
    Up to now i could not find the reason, why this flag is not set in some cases. Each test i'd made was successfull.
    Anybody of you ever had the same error?
    Kind regards,
    Tobias Stark

    Hello Expert,
    I am running with SCOM 2007 R2 with CU4. I am able tohedule schedule the Reports but when ever trying open the schedule Reports folder in SCOM Reporting Consol, getting below error message :
    Date: 3/31/2011 9:04:26 AM
    Application: System Center Operations Manager 2007 R2
    Application Version: 6.1.7221.61
    Severity: Error
    Message: Report subscription list could not be loaded.
    System.IndexOutOfRangeException: Index was outside the bounds of the array.
       at System.Array.InternalGetReference(Void* elemRef, Int32 rank, Int32* pIndices)
       at System.Array.GetValue(Int32 index)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.ManagementGroupReporting.GetSubscriptions(String owner)
       at Microsoft.EnterpriseManagement.Mom.Internal.UI.Reporting.Views.ReportSubscriptionsView.ReportSubscriptionsView.LoadSubscriptionsJob(Object sender, ConsoleJobEventArgs args)
    Any Help will be appreciable.
    Thanks & Regards,
    Sushil Kumar
    Regards, Sushil
    Hello
    we
    have the same
    problem
    workaround,
    the
    SCOM console
    locally
    open with
    windows
    vista or
    windows 7
    Regards
    sven leemann

  • I can't "clear list" in the download box with the latest Firefox browser on any of my computers.

    When I download a PDF or any file with firefox, the download box will appear like normal tracking the download until it's finished. Usually when the download is complete, you can click on "clear list" in the bottom left of the box to clear your download history, but with the latest version of Firefox none of my computers (I have two computers with Windows 7) can't click on "Clear List" as it is always greyed-out. Any help would be deeply appreciated, thank you.

    This can happen if you run Firefox in (permanent) Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy: Use custom settings for history
    *Deselect: [ ] "Always use private browsing mode"
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=842871 bug 842871] - Clean downloads button not working if you got private navigation enabled
    <i>(please do not comment in bug reports: [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html])</i>

  • The Downloads Clear List Button Not Working In Firefox 19.0

    Hello,
    After upgrading Firefox to version 19.0 today, I noticed that the Downloads Clear List Button does not work & is always grayed/greyed out, and so you can not clear all downloads; and so you have to remove them each one-at-a-time.
    I did not have this problem until upgrading to version 19.0
    Screenshot:
    http://www.use.com/showoriginal.pl?set=1c0659d1946249dc69dc&p=1
    Thank you,
    -John Jr

    I made a bug report:
    https://bugzilla.mozilla.org/show_bug.cgi?id=845450

  • I'm having a problem where Firefox keeps asking for my Amazon password, even though I tell Firefox NOT to remember this password. In Firefox options, Amazon is clearly listed as a site for which not to save passwords.

    I'm having a problem where Firefox keeps asking for my Amazon password, even though I tell Firefox NOT to remember this password. In Firefox options, Amazon is clearly listed as a site for which not to save passwords.

    Do not use [[Clear Recent History]] to clear the "Site Preferences"
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.

  • Query on clearing List Value

    Hi,
    Under Reset Button of screen, iam able to clear all the screen fields except the listbox field.
    'TDD' is the text field with the list of values which is filled from the program using FM: vrm_values., under PBO Module. The listbox is working absolutely fine and able to give the desired result. But under reset button of screen field iam unable to set the 'TDD' without any value. 'TDD' must be set to empty under reset button, but instead it is displaying the last selected item from the list.
    I have tried with the following:
    CLEAR TDD
    CLEAR LIST
    TDD = ' '.
    CALLED VRM_VALUES ONCE AGAIN UNDER RESET OPERATION.
    REFILLED THE LIST
    But unable to set TDD as empty under reset button click operation.
    Please suggest.

    Ok i have added the first list item as  ' ' i.e without any item.
    But under reset how to assign the list item on first listitem i.e empty string.
    'TDD' is the text field which is filled with values 350, 500, 600, 750, and an empty field. How to set TDD to empty field during press of Reset Button...

  • How do I clear list of items purchased without deleting the apps?

    How do I clear list of items purchased without deleting the apps? Also, is there away to attach photos from camera roll when replying or writing a new email?

    There is no way to remove items from the purchased list on the iPad.
    You can send a photo from the mail app by tapping and holding down in the body of the email and select - Insert Photo or Video - from the black options bar that will pop up.

  • Is there a way to remove or disable the "Clear List" button from the downloads list?

    Is there a way to remove or disable the "Clear List" button in the downloads list? I like to _keep_ my list populated with what I've downloaded but occasionally end up with it getting clicked on accident and lose the whole thing. Given that "Tools > Clear Recent History" dialog can accomplish the same thing I find Clear List to be irritating. So can I get rid of it in any way?
    == This happened ==
    Just once or twice
    == my brain lapsed on me ==
    == User Agent ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4

    Hello Chris.
    # go into ''Help > Troubleshooting Information...''
    # click ''Open Containing Folder''
    # in the folder that appears (new windo in windows explorer), go into the folder ''chrome''
    # open the file ''userChrome.css'' with a text editor
    # at the end of the file, in a new line, add the following code:
    <code>
    button#clearListButton
    </code>
    I haven't tested this, but it should work flawlessly. You can always erase this line if you want the button back. This will only work on your Firefox profile. If you want these changes to span across all Firefox users on your computer, please tell me.

  • Inadvertent click over 'clear list' crashed the list of downloaded files.How to retrieve that list?

    I was downloading the Firefox -5 update yesterday(07-07-2011),
    while the process was going on,the 'clear list' tab situated in the left side lower corner was pressed by me inadvertently causing disappearance of the list of all other completed,incomplete and
    failed downloaded files.The problem is how to retrieve the aforesaid
    list of the downloaded files.Can the downloaded files themselves
    also be crashed due to this mistake?If it is so,which is the way to
    retrieve those files also?

    Sorry again for the Windows menu paths, on Linux use Edit > Preferences instead of Firefox/Tools > Options as I've posted before.
    I never told you to disable settings in that part to the history settings, you did that yourself ([[/questions/897299#answer-276610]]).<br />
    I told you to check the settings in "Clear history when Firefox closes"
    Did you try to delete the downloads.sqlite file in case there is a problem with the file?
    Did you check the permissions for all files in the Firefox Profile Folder?
    *http://kb.mozillazine.org/Profile_folder_-_Firefox
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Download clear list will not clear

    when i click on the download clear list button it dues not work . I tried to uninstall and reinstall with no change

    * Make sure that you not run Firefox in (permanent) [[Private Browsing]] mode
    * You enter Private Browsing mode if you select: Tools > Options > Privacy > History: Firefox will: "Never Remember History"
    * To see all History and Cookie settings, choose: Tools > Options > Privacy, choose the setting <b>Firefox will: Use custom settings for history</b>
    * Uncheck: [ ] "Automatically start Firefox in a private browsing session"

  • My Downloads list had some valuable files and links. I hit "Clear List" by mistake. How can I recover it?

    Is there any way to recover my Downloads list? I hit "Clear List" by mistake.

    Since your downloads went to a temporary folder, and there are many things that help you clean your system of "unwanted" files they may be gone.
    In that case you may find the pages you got them from in your history (Ctrl+Shift+H") especially if they came from one site, or you know when you downloaded them.
    The AwesomeBar search using strings from title and/or url that you use in the Location Bar also works in in your History & Bookmarks sidebars and Library List. Internal searches from the Location bar have ''[http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28internal_-_Auto_Complete.29 modifiers]'' as well to help you, but in your case you probably need to work with the Library Lists.

  • Batch Capture - clearing list

    I lined up some clips to capture, then decided not to and changed tapes. However everytime I want to do a batch capture, all the old in and out points of the removed tapes come up and FCP tries to capture. Is there any way I can clear this list?
    Thanks!

    You must give each tape you log a unique tape number. That will tell FCP what to look at when you want to batch.
    If you have not done this, Try creating a new bin in the browser and drag the clips you want to capture to it. Then set this bin as the logging bin (control click on the bin and choose from drop list)
    I believe you can also click on the reel name column in the browser and change the reel name for footage that you have logged and, or captured.
    rh

  • Vendor open item doesn't appear in clearing list

    Hi All,
    Few of the vendor open items are not appearing while running transaction f-44 for clearing them.
    Anybody has any clue what could be wrong?
    These items appear in open item through FBL1N.
    Regards,
    Sunil

    Hi Sunil,
    For that you go to F110 and check any uncleared proposal are there in APP.If it is there delete those proposals.
    May be this information is useful to you
    If you have any doubt feel free to ask
    Regards
    Surya

Maybe you are looking for

  • N8 no longer responding after fingerprint V3.0 dow...

    Hello ! I have an urgent problem if it is possible to have a quick help I have a nokia N8-00 phone I downloaded an app from OVI store called ":fingerprint V3.0 " . Since I have launched it my mobile isn't latterly working nor responding ... I do real

  • Daisy chain FW 800 for TM?

    i thought i saw a post here that cautioned against having the drive being used by TM daisychained with other FW 800 drives, but i cannot find it. is that a legit restriction??

  • Problem with the graph when making DRILL DOWN

    Hello Hierarchy properties when I go to  graph And does DRILL DOWN At least once time, the graph gets stuck and when I change a parameter, a grapch is stuck Attached Link http://youtu.be/3kE3F_Vz2SQ Does anyone have an idea? BEST REGARD GADI

  • How to include Unit field(0BASE_UOM) in InfoCube

    Hi experts I am not able to include the field 0BASE_UOM in the cube as InfoObject for that field is not available,also mapping is done as 0UNIT for the field BASE_UNIT in transfer rule.

  • How do I install the apple mobile device driver for windows xp?

    I get a code 10 error when I plug my iphone in to the usb connection on my windows xp based computer. I tried going through several steps to remove all apple software from my computer, then reinstalling it and still I cannot get my iphone to show up