ArrayList problem ....how can i remove my object.

i am going to insert a cd to the arrayList , remove a cd from the arrayList, searchTheTitle, and display it...But i stuck on my remove function...i can `t remove the data that i want from the array..pls help..
//MusicCd enscaslaute the cd data
public class MusicCd
     private String musicCdsTitle;
        private int yearOfRelease;
     public MusicCd()
          musicCdsTitle = "";
          yearOfRelease = 1900;
     public MusicCd(String newMusicCdsTitle)
          musicCdsTitle = newMusicCdsTitle;
          //yearOfRelease = newYearOfRelease;
     public MusicCd(String newMusicCdsTitle, int newYearOfRelease)
          musicCdsTitle = newMusicCdsTitle;
          yearOfRelease = newYearOfRelease;
     public String getTitle()
          return musicCdsTitle;
     public int getYearOfRelease()
          return yearOfRelease;
     public void setTitle(String newMusicCdsTitle)
          musicCdsTitle = newMusicCdsTitle;
     public void setYearOfRelease(int newYearOfRelease)
          yearOfRelease = newYearOfRelease;
     public boolean equalsName(MusicCd otherCd)
          if(otherCd == null)
               return false;
          else
               return (musicCdsTitle.equals(otherCd.musicCdsTitle));
     public String toString()
          return("Music Cd`s Title: " + musicCdsTitle + "\t"
                 + "Year of release: " + yearOfRelease + "\t");
import java.util.ArrayList;
import java.io.*;
public class MusicCdStore
   ArrayList<MusicCd> MusicCdList;
   public void insertCd()
        MusicCdList = new ArrayList<MusicCd>( ); 
        readOperation theRo = new readOperation();
        MusicCd theCd;
        int muiseCdsYearOfRelease;
        String muiseCdsTitle;
          while(true)
                String continueInsertCd = "Y";
               do
                    muiseCdsTitle = theRo.readString("Please enter your CD`s title : ");
                    muiseCdsYearOfRelease = theRo.readInt("Please enter your CD`s year of release : ");
                    MusicCdList.add(new MusicCd(muiseCdsTitle, muiseCdsYearOfRelease));
                    MusicCdList.trimToSize();
                    continueInsertCd = theRo.readString("Do you have another Cd ? (Y/N) : ");
               }while(continueInsertCd.equals("Y") || continueInsertCd.equals("y") );
               if(continueInsertCd.equals("N") || continueInsertCd.equals("n"));
                                                //MusicCdList.add(new MusicCd(muiseCdsTitle, muiseCdsYearOfRelease));                              
                              break;
                  //System.out.println("You `ve an invalid input " + continueInsertCd + " Please enter (Y/N) only!!");
   public void displayAllCd()
                System.out.println("\nOur CD collection is: \n" );
          System.out.println(toString());
   public String toString( )
        String result= " ";
        for( MusicCd tempCd : MusicCdList)
             result += tempCd.toString() + "\n";
        return result;
   public void searchingMusicCd()
        readOperation theRo = new readOperation();
        String keyword = theRo.readString("Enter a CD `s Title you are going to search : ") ;
        ArrayList<MusicCd> results = searchForTitle(keyword );
          System.out.println("The search results for " + keyword + " are:" );
          for(MusicCd tempCd : results)
               System.out.println( tempCd.toString() );
   //encapsulate the A
   public void removeCd()
        readOperation theRo = new readOperation();
        String keyword = theRo.readString("Please enter CD `s title you are going to remove : ") ;
        ArrayList<MusicCd> removeMusicCdResult =searchForRemoveCdsTitle(keyword);
              System.out.println("The CD that you just removed  is " + keyword );
          for(MusicCd tempCd : removeMusicCdResult)
               System.out.println( tempCd.toString() );
   private ArrayList<MusicCd> searchForTitle(String searchString)
        ArrayList<MusicCd> searchResult = new ArrayList<MusicCd>();
        for(MusicCd currentMusicCd : MusicCdList)
             if((currentMusicCd.getTitle()).indexOf(searchString) != -1)
                  searchResult.add(currentMusicCd);
        searchResult.trimToSize();
        return searchResult;
   private ArrayList<MusicCd> searchForRemoveCdsTitle(String searchString)
        MusicCd tempCd = new MusicCd();
        tempCd.setTitle(searchString);
        ArrayList<MusicCd> removeCdsResult = new ArrayList<MusicCd>();
        for(MusicCd currentMusicCd : MusicCdList)
             if((currentMusicCd.getTitle()).equals(tempCd.getTitle()))
                  removeCdsResult.remove(currentMusicCd);
        removeCdsResult.trimToSize();
        return removeCdsResult;
private ArrayList<MusicCd> searchForRemoveCdsTitle(String searchString)
        ArrayList<MusicCd> removeCdsResult = new ArrayList<MusicCd>();
        for(MusicCd currentMusicCd : MusicCdList)
             if((currentMusicCd.getTitle()).indexOf(searchString) != -1)
                  removeCdsResult.remove(currentMusicCd);
        removeCdsResult.trimToSize();
        return removeCdsResult;
import java.util.*;
public class readOperation{
     public String readString(String userInstruction)
          String aString = null;
          try
                     Scanner scan = new Scanner(System.in);
               System.out.print(userInstruction);
               aString = scan.nextLine();
          catch (NoSuchElementException e)
               //if no line was found
               System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
          catch (IllegalStateException e)
               // if this scanner is closed
               System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
          return aString;
     public char readTheFirstChar(String userInstruction)
          char aChar = ' ';
          String strSelection = null;
          try
               //char charSelection;
                     Scanner scan = new Scanner(System.in);
               System.out.print(userInstruction);
               strSelection = scan.next();
               aChar =  strSelection.charAt(0);
          catch (NoSuchElementException e)
               //if no line was found
               System.out.println("\nNoSuchElementException error occurred (no line was found) " + e);
          catch (IllegalStateException e)
               // if this scanner is closed
               System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
          return aChar;
     public int readInt(String userInstruction) {
          int aInt = 0;
          try {
               Scanner scan = new Scanner(System.in);
               System.out.print(userInstruction);
               aInt = scan.nextInt();
          } catch (InputMismatchException e) {
               System.out.println("\nInputMismatchException error occurred (the next token does not match the Integer regular expression, or is out of range) " + e);
          } catch (NoSuchElementException e) {
               System.out.println("\nNoSuchElementException error occurred (input is exhausted)" + e);
          } catch (IllegalStateException e) {
               System.out.println("\nIllegalStateException error occurred (scanner is closed)" + e);
          return aInt;
import java.util.*;
public class MusicCdStoreEngine{
     public static void main(String[] args)
          MusicCdStore mcs = new MusicCdStore( );
          mcs.insertCd();
          //display the Cd that you just insert
          mcs.displayAllCd();
          mcs.removeCd();
          mcs.displayAllCd();
          //mcs.searchingMusicCd();
//Acutally result
//Please enter your CD`s title : ivan
//Please enter your CD`s year of release : 1992
//Do you have another Cd ? (Y/N) : y
//Please enter your CD`s title : hero
//Please enter your CD`s year of release : 1992
//Do you have another Cd ? (Y/N) : n
//Our CD collection is:
// Music Cd`s Title: ivan     Year of release: 1992
//Music Cd`s Title: hero     Year of release: 1992     
//Please enter CD `s title you are going to remove : hero
//The CD that you just removed  is hero
//Our CD collection is:
// Music Cd`s Title: ivan     Year of release: 1992
//Music Cd`s Title: hero     Year of release: 1992     
//Enter a CD `s Title you are going to search : hero
//The search results for hero are:
//Music Cd`s Title: hero     Year of release: 1992
//>Exit code: 0
//Expected result
//Please enter your CD`s title : ivan
//Please enter your CD`s year of release : 1992
//Do you have another Cd ? (Y/N) : y
//Please enter your CD`s title : hero
//Please enter your CD`s year of release : 1992
//Do you have another Cd ? (Y/N) : n
//Our CD collection is:
// Music Cd`s Title: ivan     Year of release: 1992
//Music Cd`s Title: hero     Year of release: 1992     
//Please enter CD `s title you are going to remove : hero
//The CD that you just removed  is hero
//Our CD collection is:
// Music Cd`s Title: ivan     Year of release: 1992
//Music Cd`s Title: hero     Year of release: 1992<<-- it is not supposed to display cos i have deleted it from from array     
//Enter a CD `s Title you are going to search : hero
//The search results for hero are:
//Music Cd`s Title: hero     Year of release: 1992<<-- i should have get this reuslt...cos it is already delete from my array
//>Exit code: 0

(1) searchForRemoveCdsTitle() removes rather than adds the CDs that it finds to
the list that it returns.So searchForRemoveCdsTitle() should be:private ArrayList<MusicCd> searchForRemoveCdsTitle(String searchString)
        MusicCd tempCd = new MusicCd();
        tempCd.setTitle(searchString);
        ArrayList<MusicCd> removeCdsResult = new ArrayList<MusicCd>();
        for(MusicCd currentMusicCd : MusicCdList)
            if((currentMusicCd.getTitle()).equals(tempCd.getTitle()))
                //removeCdsResult.remove(currentMusicCd);
                removeCdsResult.add(currentMusicCd); // <-- changed
        removeCdsResult.trimToSize();
        return removeCdsResult;
(2) In removeCd() you never actually remove the CDs from the array list, you just
print them to System.outSo removeCd() should be:public void removeCd()
        readOperation theRo = new readOperation();
        String keyword = theRo.readString("Please enter CD `s title you are going to remove : ") ;
        ArrayList<MusicCd> removeMusicCdResult =searchForRemoveCdsTitle(keyword);
        System.out.println("The CD that you just removed  is " + keyword );
        for(MusicCd tempCd : removeMusicCdResult)
            //System.out.println( tempCd.toString() );
            MusicCdList.remove(tempCd); // <-- changed
    }With these changes we get:Please enter your CD`s title : ivan
Please enter your CD`s year of release : 1234
Do you have another Cd ? (Y/N) : y
Please enter your CD`s title : hero
Please enter your CD`s year of release : 4321
Do you have another Cd ? (Y/N) : n
Our CD collection is:
Music Cd`s Title: ivan     Year of release: 1234     
Music Cd`s Title: hero     Year of release: 4321     
Please enter CD `s title you are going to remove : hero
The CD that you just removed  is hero
Our CD collection is:
Music Cd`s Title: ivan     Year of release: 1234     This "works", but I can't do more than hope that it helps. Really if something is unclear about either of these points it might be more productive to ask about that.

Similar Messages

  • How can I remove an object using Photoshop Elements 7?

    How can I remove an object using Photoshop Elements 7?

    You could probably use the 8 point garbage matte in this situation. I personally think the 8-point garbage matte is a bit cumbersome, but it should get the job done.
    1. Use the Razor Blade tool to place a cut before and after the shot with the bottle.
    2. Select the bottle clip.
    3. Press and hold Shift + Option, then drag the bottle clip up one track. This should create a duplicate clip directly above your original clip. (I'll refer to this duplicated clip as bottle2.)
    4. Locate the 8-point Garbage Matte filter and apply it to bottle2.
    5. Locate the Gaussian Blur filter and apply it to bottle2.
    6. Control click bottle1, and uncheck the "Clip Enable" setting from the shortcut menu. This will disable that clip.
    7. Double click bottle2 to load it into the Viewer. Then select the Filter tab.
    8. For the Garbage Matte filter, you'll notice 8 rows of numbers, these are the current locations for the control points, which you should be able to see in the Canvas. Start with point #1, and click the "+" button in the filters area, then in the Canvas click and drag to move the point. When you release the mouse button, you'll need to reclick the "+" button in the filters tab. Repeat these steps until you've isolated the bottle.
    9. Feather the edge of the matte.
    10. Adjust the Blur amount.
    11. Reenable bottle1. Playback the clip and make any necessary adjustments.
    Depending on your experience with Motion, you might also want to try sending bottle1 to Motion, then use Motion to control the layering.

  • How can I remove an object from a scene?

    Forum,
    I am editing video which has a cat about to jump from the utility room window into the garden.
    However the clip is spoilt by a washing up bottle to the left of the cat.
    I want to remove or cover up this bottle.
    I have spent 90 minutes browsing through the six books I have on FCS and can not find a reference to to this problem ,although I am sure I have read how to perform this task in one of the books.
    I would welcome any help on the solution to resolve this problem.
    Thank you,
    Michael Craven

    You could probably use the 8 point garbage matte in this situation. I personally think the 8-point garbage matte is a bit cumbersome, but it should get the job done.
    1. Use the Razor Blade tool to place a cut before and after the shot with the bottle.
    2. Select the bottle clip.
    3. Press and hold Shift + Option, then drag the bottle clip up one track. This should create a duplicate clip directly above your original clip. (I'll refer to this duplicated clip as bottle2.)
    4. Locate the 8-point Garbage Matte filter and apply it to bottle2.
    5. Locate the Gaussian Blur filter and apply it to bottle2.
    6. Control click bottle1, and uncheck the "Clip Enable" setting from the shortcut menu. This will disable that clip.
    7. Double click bottle2 to load it into the Viewer. Then select the Filter tab.
    8. For the Garbage Matte filter, you'll notice 8 rows of numbers, these are the current locations for the control points, which you should be able to see in the Canvas. Start with point #1, and click the "+" button in the filters area, then in the Canvas click and drag to move the point. When you release the mouse button, you'll need to reclick the "+" button in the filters tab. Repeat these steps until you've isolated the bottle.
    9. Feather the edge of the matte.
    10. Adjust the Blur amount.
    11. Reenable bottle1. Playback the clip and make any necessary adjustments.
    Depending on your experience with Motion, you might also want to try sending bottle1 to Motion, then use Motion to control the layering.

  • How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    How can i remove my credit card from app store, the none option its not there and i don't Owen  nothing to apple, my last in app purchase was in clash of clans, please help!!! Because of that problem i cant update my apps! Plz help!!!!!

    You've logged into your account and viewed your purchase history and there aren't any error messages shown (e.g. 'problem with a previous purchase'), and you haven't got any purchases due (e.g. pre-orders and/or subscriptions) : Why can’t I select None when I edit my Apple ID payment information ?

  • I install LION on my mac pro 2008 and it's alway's pop with " there was a problem connecting to the server " Time Capsule" .How can i remove this popup. My Time machine is working fine and also rename it. But the popup keeps on coming with the old name.

    I installed LION on my mac pro 2008 and it's alway's pop with " there was a problem connecting to the server " Time Capsule" .How can i remove this popup. My Time machine is working fine and also rename it with less than 7 karakters. But the popup keeps on coming with the old name.

    I have a BT Infinity router plugged into the Time Capsule, not sure where the radio settings are?
    They are able to use the network settings of the TC i.e. they can connect to the internet via the wifi through the TC but when they try and connect to the AirPort Disk this is where it is not allowing a connection.
    I don;t have the drive shared out at all at the moment, is this necessary?  How do I do this if so?
    I have attached the screen shots of all the settings.
    Thanks again for your help.

  • How can we remove asterix from the amount

    i have problem wen i am trying to get amount it uis coming in this manner
    ***100000**
    how can i remove it
    pls let me know

    Here is one logic:
    data text type string.
    text = '**1000**'.
    replace all occurrences of '*' in text with ''.
    write text.
    Check out this link too:
    do not want asterix to be padded in left of currency value..
    Hope it helps you.

  • How can I remove a tablet device that isn't there?

    In one of our test environments we've got an Xserve running OSX 10.5.6, inside is running Server 10.5 in VMWare Fusion.
    Now, the VM thinks it has a tablet device installed, as is evidenced by the ink tab showing up in system preferences (the host does not have the ink option there). Obviously there is no tablet device installed. The VM was set up by one of our IT guys who has already reinstalled it, noting no options during setup about a tablet device.
    This problem is causing one piece of software to not work in the VM, or at least, the UI doesn't. There are thousands of console messages reading "QCocoaView handleTabletEvent: This tablet device is unknown (received no proximity event for it). Discarding event"
    Question is, how can I remove the tablet device so that this software will start working? I've checked all through VMWare Fusion's options/preferences & couldn't find anything there and Googling has turned up nothing so far.

    a brody wrote:
    Since Mac OS X Server is different from Mac OS X client, I've asked a moderator to move your thread to the appropriate forum.
    Oops, my bad, but thanks.

  • I have iPhone 4s, and using latest iOS. When I try to open any link from Twitter or Facebook, it goes to open some wrong webpage. My iphone seems to be infected or suffering from some spyware or malware. How can I remove this wrong link opening

    I have iPhone 4s, and using latest iOS. When I try to open any link from Twitter or Facebook, it goes to open some wrong webpage. My iphone seems to be infected or suffering from some spyware or malware. How can I remove this wrong link opening ? Please help me to resolve...

    I think the McAfee suite will do the trick when I pay them a one-time fee of $69 or $179 for a year for unlimited support.
    Your call of course but IMO a waste of money. Please read this first:
    There are many forms of ‘Malware’ that can affect a computer system, of which ‘a virus’ is but one type, ‘trojans’ another. Using the strict definition of a computer virus, no viruses that can attack OS X have so far been detected 'in the wild', i.e. in anything other than laboratory conditions. The same is not true of other forms of malware, such as Trojans. Whilst it is a fairly safe bet that your Mac has NOT been infected by a virus, it may have another security-related problem, but more likely a technical problem unrelated to any malware threat.
    You may find this User Tip on Viruses, Trojan Detection and Removal, as well as general Internet Security and Privacy, useful:
    https://discussions.apple.com/docs/DOC-2435
    The User Tip (which you are welcome to print out and retain for future reference) seeks to offer guidance on the main security threats and how to avoid them.
    More useful information can also be found here:
    http://www.reedcorner.net/mmg/

  • HT1338 how can I remove an app store app from 10.6.8

    I downloaded an app from the appstore and want to remove it, but it remains in the "installed" state in app store. How can I remove it from the app store's idea of what's installed?

    It's a desktop app, the only kind available from the appstore, as I indicated in my original post. Also, as indicated in the original post, dragging to the trash removes it from my system, but not from the Appstore's notion of what's installed. The Appstore still thinks it's installed. That's the problem. It's a hygiene issue.

  • How can I remove a Disabled Extension not compatible with Firefox 4.0.1? I just want to remove it... I don't want to wait for a compatible update. Why can't I remove it?

    When I upgraded from 3.XX to 4.0.1, it informed me that 2 extensions were not compatible and it never gave me the option to remove them. Firefox 4.0.1 disabled them and now I'm not able to remove them.
    Also they were added by Acrobat Pro X (Adobe Acrobat - Create PDF 1.0) and Nokia Ovi Suite (Firefox Synchronisation Extension 7.3.4.51).
    These extensions won't probably be updated unless they update the software that installed them. With this said, How can I remove the disabled extensions? Why it doesn't give me a button to remove them to start with?

    I think it's not the problem of compatibility. Extensions installed into Windows registry won't have a remove button ( or it's greyed out ). For these extensions, you can have a look into these keys:
    HKEY_CURRENT_USER\Software\Mozilla\Firefox\Extensions\
    HKEY_LOCAL_MACHINE\Software\Mozilla\Firefox\Extensions\
    If you are under a 64bit OS as I am, you may also try this key:
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Mozilla\Firefox\Extensions\
    And you may find the registry entries corresponding to the extensions you want to remove. Just export them to a backup.reg, then delete these entries. Firefox will do the rest, but it seems that fx still leaves extensions.rdf untouched. You can also delete the RDF entries corresponding to those extensions inside extensions.rdf
    cf: http://kb.mozillazine.org/Uninstalling_add-ons#Windows_Registry_extension
    BUT the Wow6432Node key wasn't mentioned in the above article
    I had to search the registry to find out the entry corresponding to a Fiddler2 extension, then I found the Wow6432Node key. I also saw the Nokia Ovi Suite entry beside the Fiddler2 entry.
    Hope it helps.

  • How can I remove my old iPad from Icloud!

    The problem is I've sold my ipad2 and that iPad was used by my account! But now this is not belong to me anymore, how can I remove the iPad from my account! When she opens ICloud , I can see her photo via photo stream! That makes me in trouble! Plsssss help me!

    You should've deleted your iCloud account from the iPad BEFORE you sold it.
    Now the new owner is using your iCloud account, and can access your email, contacts and calendars too.
    Contact the buyer and ask them to sign up for their own iCloud account and use that instead.
    If you can't contact the buyer, change the password for your iCloud account so they can't use it anymore.

  • Somebody uses my apple id for facetime on his iphone how can i remove his phone from my account?

    somebody uses my apple id for facetime on his iphone how can i remove his phone from my account?

    Last Spring I received a couple of emails to an alias I set up a long time ago under mac mail with mac.com - not my main ID - at mac.com.   The mail had the Icloud extension.     I just deleted it.
    I then received a couple of e-mails forwarded to the same alias that came from a non-apple account that led me to search to see if the company was legit - it was.     Using a non-apple hidden account I sent that non-apple account an email informing them apparently when they registered the ID or alias as an ICLOUD extension - apple did not check for duplication in accounts or aliases that were not in the Icloud.
    I also sent feedback to Apple telling them to fix it and apparently they did - along with the person who replicated my alias.
    On this site there were a number of postings from people who also had problems with mac mail and Icloud who resolved it by contacting Apple and getting the accounts cleared up.

  • How can I remove a podcast from iTunes if iTunes is locked up.

    I added a password protected podcast and iTunes locks up on the authentication dialog. Spinning beachball... only thing I can do is force quit.
    Earlier solution was to go in and manually disable podcasts with Xcode. but then i can't play any of my podcasts.
    The recent itunes update fixed the problem, sort of. it allowed me to use itunes normally again. But, I tried to subscribe to the podcast agin and... yup, same thing.
    How can I remove that podcast from iTunes without using iTunes to remove it?
    HELP!!!!

    ROGER, I AM SORRY I DIDN'T GIVE YOU THE 10 POINT RATING. I DIDN'T REALIZE IT MADE A DIFFERENCE AND THE PROBLEM I HAVE IS NOT WITH YOUR RESPONSE, WHICH WAS RIGHT ON, BUT WITH THE WAY THE SYSTEM WORKS.
    REGARDS, JEANNE

  • HT1918 How can i  remove my credit card from my itunes account completely?

    I am having a problem with my card and i want to remove it off my itunes account so i can use my free apps on my phone before i put my card on it. It is causing a problem and making it very hard to keep my phone updated. So how can I remove the card completely without having to put a new card on there?

    Hey poisonx93,
    Using these steps, you should be able to select "None" as your payment method to remove your card from your Apple ID:
    Changing your payment information using an iOS device
    Tap Settings on the Home screen.
    Tap iTunes & App Stores.
    Tap your Apple ID. (If you aren't signed in, enter your Apple ID and password and tap Sign In.)
    Tap View Apple ID.
    Enter your Apple ID password.
    In the Edit section, tap Payment Information.
    Update the information that you want to change.
    Note: You can find the payment methods that the iTunes Store accepts in the Payment Type section. If you don't want a payment method on your account, select None in the Payment Type section.
    from: iTunes Store: Changing your payment information
    http://support.apple.com/kb/HT1918
    Welcome to Apple Support Communities!
    All the best,
    Delgadoh

Maybe you are looking for

  • Some PDF's will print in 7 Pro but not 8 Pro?

    Certain PDF's will print in 7 but not in 8?  Is it connected to 10.5.5 or 10.5.6? or maybe CS4? Has anyone else had this problem?

  • Looking for 9-pin mini DIN to 9-pin mini DIN GREEN for Inspire 5700 digital

    hi guys, I'm looking for this cable. 9-pin mini DIN to 9-pin mini DIN (2 meters - Green) for my Inspire 5700 digital. http://images.americas.creative.com/...mall89___6.gif Currently I'm using the RED version from FPS2000, but I get no sound for Cente

  • Mail repeats characters in heading lines

    Hi since I upgraded to Leopard Mail.app started with this strange behavior: I can enter only one address per line. When I try to enter a second one, it starts repeating the characters I enter in sequence. For instance, if I try to enter the word "Pet

  • Servlets with Oracle 9i JDeveloper

    To whom it may concern: I am using JDeveloper to create a servlet. Previously, I have tested my code out vvia an application using Oracle 8.1.7 by adding an extra path to a JDeveloper project. However, when I try using the simple servlet that I built

  • Availibility check for sales orders created simultaneously

    Hi SD experts, When a sales order is being created with an item "A", while a second sales order is being created too, at the same time, with the same item "A", the system can't carry out the availibilty check. It displays the following message : "The