Advice would be helpful

I have been given a problem to solve and any advice would be brilliant.
I have to create a list of paper and book objects that will include a method to add a book or paper object.
The parameters are :
parameters Paper parameters Book
titleofPublication titleOfPublication;
Publisher; Publisher;
nameOfTitle; author
author; flag;
date;
I have been able to break this into a simple algorithm as follows
1. Constructor to intialise parameters for Paper
2. Set and get methods for these parameters
3. Create instantiation of Paper.
4. Create an array of paper called paperlist
5. Add instantiation of array
6. Inherit the properties of Paper to book ( the same parameters that are required for both)
7. Create an array for book called Booklist
8. Create an instantiation of book
9. Add instantiation of Book to array
10. Print out details of both arrays
I have done 1 and 2 as they are relatively simple. I have created the array or atleast declared it. The one problem I have is how to add an instantiation of Paper to the array called Paperlist.
Any ideas?

Apolagies for the untidyness of the parameter list the editor for some reason restricted the spaces I put in.
The parameter list in tidy form should read :
Paper
titleOfPublication;
publisher;
nameOfTitle;
author;
date;
Book
titleOfPublication;
publisher
author;
flag;

Similar Messages

  • Mac os x Lion version 10.7.2 installed Gutenprint for my Epson Stylus Photo 1390. Every time I try to print I get the following error message: cgpdftoraster unsupported colorSpace. Any advice would be helpful thanks.

    Mac os x Lion version 10.7.2 installed Gutenprint for my Epson Stylus Photo 1390. Every time I try to print I get the following error message: cgpdftoraster unsupported colorSpace. Any advice would be helpful thanks.

    I don't think Lion installed it, rather you did. That said System Preferences>Print & Scan. select your Epson printer and then select Options & Supplies>Driver>Print Using>Select print Software. Then scroll down to the driver you want to use.

  • HT201322 What if it doesn't give you a "hide" option when swiping to the left or right ? And it's doing that on my iPhone 5 & my new iTouch (5th Gen) ?!? Any advice would be helpful.. Thanx!

    Mine does not give me an "option" to hide purchased items and the specific one I'm referring to was FREE, and when I swipe to the left or right it doesn't do NOTHING! I need help guys..lol

    It doesn't appear to work on iOS 6 (and neither does unhiding, though you can still view and download them) - whether that is permanent or only temporary I don't know. You should still be able to hide things via your computer's iTunes.

  • NEED HELP ASAP !!!! ANY ADVICE WOULD BE HELPFUL .....!!

    I have a bb torch which i am selling to someone in a few days, but i want to run a security wipe in it before i give it to him. But my problem is my keypad dosen't work so is there any other way i could run the securiity wipe in it??? I need to know asaaappp...
     Thankyou

    Hello shemyer,
    If the keyboards on your BlackBerry® Torch™ 9800 smartphone are currently not functioning, you could use the reset to factory process in BlackBerry® Desktop Software to wipe your device. The following article should help regarding this process:
    How to reset the BlackBerry smartphone to factory defaults - http://www.blackberry.com/btsc/KB18998
    We hope this helps.
    Thank you.
    -FB
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click "Accept as a Solution" for posts that have solved your issue(s)!

  • Any help or opinion/advice would be so appreciated...

    - Original iPhone worked flawlessly for 2 years. In June of this year, began to experience locked screen issues, so went to AT&T store hoping to get a replacement phone. Was told I could not, I had no choice but to 'upgrade', which I did not want to do, as it would recommit me to an additional 2 year contract. But having no choice, I agreed.
    - The new phone (3G), gave me issues within the first week. I went back to AT&T (as I was assured when I purchased that I had 30 days to return/replace if needed), only to be told they were so sorry I was misinformed by the sales girl (and that she had done this several times), and they could not help me unless I returned the phone, and purchased again, this time for $50 more, because the sales girl who sold it to me had charged me incorrectly the first time. After an hour of back and forth, and my refusing to pay more, they recommended I go to the Apple store, and try to exchange it there.
    - I decided to call Apple support, and explained the situation. The very nice person I spoke to, directed me to the Apple store, telling me he would take care of it, all I had to do was walk in, give my name, and would be given a new phone. So, I went.
    - The Apple store, proceeded to give me a 'new' phone, but when I noticed that it came in a white box, I asked the question of whether it was a new phone, or a refurbished. I was given, what sounded like a prepared speech, of how it was against the law for them to sell refurbished items without disclosing them as such, and that the phone I was receiving was NOT refurbished, and only in the white box, 'to save costs on the fancy Apple boxes'. Naive me, asked them if they promised. They said, they promised.
    - Within 2 weeks or so, my 'new' (found out by reading these threads it in fact, was not new, the serial number begins with 5), began to act up. Frustrated, I called the Apple support person back. As nice as he was the first time, he patiently tried to help me sort the issues, and instructed me to try restore/reset/etc. In doing so, my phone locked on me. Frustration level elevated now, I decided, enough of this, I am going to just spend the extra money required and buy a brand new phone, as to eliminate this madness and have peace of mind that my additional 2 year commitment would be with a working phone. I left that one plugged in to my Macbook, locked, and headed to the Apple store (45 minutes away, which is why I didn't buy it there in the first place, gas prices are so high).
    - Purchased new phone, installed the 3.1 update, and... here we go again. Having similar problems to all those described in the monster threads.
    I have been working with the nice Apple support guy for a few days, and he has been very helpful, but despite doing all as instructed, my phone is still acting up. I have 1 day left on my 30 day since purchase and am so torn on what to do. Do I ...
    - go back to the Apple store, get a 'new' (refurbished even though they promise they are not) phone, and risk not having peace of mind for the next 2 years?
    Or
    - Buy a new phone AGAIN, this time, never installing any update until it's well documented that it won't affect my phone.
    OR.... ?
    My phone is my main device for all I do. I need it working. Am so extremely frustrated right now. Not only have I had to spend money I simply do not have, my 2 year commitment keeps getting restarted every time I exchange/get new. Not to mention, I am charged the activation fee each time as well. *****.
    Am new to this support forum, so please bear with me if I've done anything out of order by posting here. And, just so all of you who read this know, I linked the nice Apple guy to the monster threads here, and he did read through them (skimming I assume), so, Apple, at least to my knowledge, is aware of what we are going through.
    Thanks so much for letting me off-load. Any help or opinion/advice would be so appreciated.

    Thanks so much for your help Allan. If you don't mind, I'd like to respond/clarify a few things...
    Allan Sampson wrote:
    Apple and AT&T sell the iPhone at the same price. AT&T's subsidized price for the iPhone is the same at an Apple store, an AT&T store, a Best Buy, or Walmart.
    I was charged a different price by AT&T (sales girl error), thus why they would not give me a new phone unless I paid the additional fee). I didn't want to pay, as I didn't see why her error should be my responsibility. I had no idea she had charged me wrong.
    There is not an activation fee when activating an iPhone exchanged under warranty.
    I was charged, all 3 times.
    Per the written warranty, an exchange under warranty will be a new or refurbished iPhone with no way to tell the difference between the two. The serial number beginning with 5 does not mean refurbished. An exchange under warranty is provided in a white unsealed box, which is called a service unit and can be new or refurbished.
    I guess what bothers me is that they lied to me when I asked.
    Having a new iPhone doesn't ensure it will last 2 years with no problems, and having an exchange under warranty which can be new or refurbished doesn't ensure this either and doesn't mean it won't. The iPhone includes a standard one year warranty, which can be extended to 2 years with AppleCare.
    Peace of mind is what I was/am looking for, and my experience with Apple up until this incident, peace of mind is exactly what I felt when buying Apple products. It's hard to swallow being locked into another 2 year commitment, not to mention monthly fee being higher now as well, all with a unreliable phone.
    A refurbished iPhone goes through more inspection and testing than a new iPhone does at the factory with no way to tell the difference between the two.
    I guess it's a matter of principle to me. I don't appreciate being lied to. In regards to the exchange, I would have been more than fine with the refurb, but, they lied to me. This was confirmed to me, when I spoke the nice Apple support guy. He confirmed what I had read on these threads about refurb, and confirmed that the serial number starting with 5 means refurb. He is very nice and very helpful, and agreed that I should not have been mislead like that.
    Thanks again for your help Allan. Really really appreciate it.

  • HT1263 where can I find the System Mac 9 that would be in the (original release) factory shipped iMac's prior to 2010? I'm missing key system data and cannot update to iPhoto app past 6.0.6; any advice will be helpful, thank you.

    Where can I find the System Mac 9 that would be in the (original release) factory shipped iMac's prior to 2010? I'm missing key system data and cannot update to iPhoto app past 6.0.6; any advice will be helpful, thank you.

    Where can I find the System Mac 9 that would be in the (original release) factory shipped iMac's prior to 2010?
    What are you refering to here? Mac OS 9 came out around 2001 ( or about ).  Mac OS 9 last run  in an emulation mode in 10.4.11 -- Tiger.  Mac OS 9 ran on PPC machines that were last produced before 2004 or so.
    I think your conclusion you need Mac OS 9 is incorrect.
    I'm missing key system data and cannot update to iPhoto app past 6.0.6; any advice will be helpful, thank you.
    iPhoto '11, Mac OS X (10.6.8), need to upgrade system to 10.8
    We need to verify some information.  Are you really running 10.6.8?  What hardware?
    Here is how to find out what version of Mac OS you are running:
    Click on the blue apple in the upper left hand of the screen.
    click on this icon
    Click on the first line, "About This Mac"
    Most of these are numbers & that's what we want.
    What version & Processor do you have?

  • While notes, reminders and calendar are working fine, keynote (beta) and pages (beta) are not responding, they are sticking. What should I do?  I would appreciate help.  Thank you.

    while notes, reminders and calendar are working fine, keynote (beta) and pages (beta) are not responding, they are sticking. What should I do?  I would appreciate help.  Thank you.

    Unfortunately, most of my advice is in the "hindsight is 20-20" category.
    First off, I would never have purchased the peripheral accessories until the 14 day return period had expired. Second, you learned the hard way what the "14 days" really means.
    Too bad you didn't do any homework, reading this and other forums and tech sites. Even word of mouth from others. That, more than anything could have steered you towards different phone choices from the get-go and I will leave that there with no further comment other than to say most of the issues you described have been discussed in this forum, ad nauseam.
    Once you got into the refurbished phone exchanges, that is where things really went haywire. What someone tells you over the phone is a sketchy proposition, and when it comes down to it, it's your word against theirs.
    I think Verizon tried to make it right, though. Remember, they don't make the phones. Don't throw the baby out with the bathwater.
    You stated yourself you were a satisfied Verizon customer before this. Had the first two phones performed as they should, you would still be a satisfied Verizon customer.
    Doubt any of that will make you any happier, but after you went through the effort of writing such a long post, I thought I'd try.

  • Unable to install Applications/Support/Adobe/CoreSync. Any advice would be great!

    I tried to install Creative cloud on Mac OS X  and keep getting a message that it was unable to install Applications/Support/Adobe/CoreSync. Any advice would be great! Plus there isn't an error code.

    '''I think I solved it myself yesterday, indirectly''' by deleting a Googleupdater.exe file dated 042511. It has been over 24 hours now and no sign of the 'Just-In-Time Debugger' pop-up. Whew...it was incessant.
    Not sure how I got the Googleupdater.exe file on my computer. I did download Microsoft Security Essentials to help find the JIT problem, but it failed to install properly and run. The next day I remembered it probably only runs on Internet Explorer (which we deleted in 2009) after testing out Firefox. I then also deleted Security Essentials.
    I also downloaded on April 25th the free version of MS Visual Basics because I read on eHow that you can adjust settings in the 'TOOL' menu to stop JIT Debugging pop-ups. However, the free version was 'MS Visual Studio Basic 2008 Express Edition - SP1' which did NOT provide access to JIT Debugging settings (so it was not a solution).
    I must say I switched Internet Security programs to AVAST! on TU | Apr26th and love it so far. Highly recommend looking into AVAST! ver 6.0 at CNET downloads - free. The anti-virus program is free, but everything else costs about $30US for a year. WORTH IT Love the options | settings | flexibility|user friendly windows.
    Trend Micro was then deleted. It had always blocked usage of our internal CD|DVD drive. To use the CD|DVD drive we had to shut off Trend Micro and then turn it back on again after we finished using the CD|DVD drive. NOT a preference - for sure. Jaykay

  • Advice on cabling - help much appreciated!

    Hi, my first post here.......... Im wondering if anyone can help/advise I have had sky for about a year and the tv is in one corner of the room with the sky connected through a cable in the wall to the dish outside.  The engineer did all this when he fitted the sky dish  I am wanting to change my sitting room around - move the tv to the other side of the room BUT the sky cable wont be long enough to do this at the moment Can I replace the sky cable myself with one that is long enough or do I need to contact Sky and book an engineer to come out to either extend the cable or replace with a new one that is long enough to enable me to move my tv? Not sure if that makes any sense at all but I am hoping it does! Any advice would be greatly appreicated thank you in advance 

    Test the extension cables hooked up to the Sky box before you start moving the furniture.  This is to make sure your signal levels don't drop off to below threshold level when you add the new cables.   Amazon do complete satellite cable extension kits.

  • My MacBook is almost two years old and has started running really slow. It gets bogged down when it is running different programs at the same time, like Safari and Pages. It didn't react this way until recently. Any advice would be very welcome.

    My MacBook is almost two years old and has started running really slow. It gets bogged down when it is running different programs at the same time, like Safari and Pages. It didn't react this way until recently. Any advice would be very welcome.

    Launch Disk Utility and select the icon of the internal drive (the drive itself, not the volume icons below it.) Is the SMART status "Verified?" If not, replace the drive immediately. If the status is "Verified," the drive may still be failing. Back up all data, if you haven't already done so. Reinstall Mac OS X, then run Software Update. Test with all wired peripherals disconnected. If it's still slow, you have a hardware problem.
    Mac OS X 10.6 Help: Reinstalling Mac OS X

  • I have recently upgraded to 7.0.2 and can no longer charge my iphone 4 as i recieve the message this accessory may not be supported, any advice would be appreciated

    i have recently upgraded to 7.0.2 and can no longer charge my iphone 4 as i recieve the message this accessory may not be supported, any advice would be appreciated
    i have also tried 4 different chargers both official apple and non official

    i have tried this but still not working i found a way of fixing it by restoring the phone but this has now put my phone in recovery mode and when i try to fix it i get an error 14 which i have no clue what it means

  • Problem with replies in Maverick's mail.  Originating emails send fine.  When replying to an email (various addresses) the reply is hung up and can not be sent.  Option becomes put in draft, delete, etc.  Any suggestions would be helpful

    Problem with replies in Maverick's mail.  Originating emails send fine.  When replying to an email (various addresses) the reply is hung up and can not be sent.  Option becomes put in draft, delete, etc.  Any suggestions would be helpful.  Mid 2013 iMac.

    I don't know how rare this is.  I went a week or so without a problem, and now it's starting to recur.  Also, in some instances, an email will look unsent (remain in the outbox on the Treo), but it has been sent, and recipients are replying while I'm trying to figure out what is going on.  Further, it will send the same email over and over during this madness.
    This is a show stopper.  If there isn't a software fix soon, I may chuck this phone in the garbage.
    Post relates to: Treo 800w (Sprint)
    UPDATE:  The problem comes and goes.  The next day, no changes to the treo, everything workeds.  Now i'm suspecting the sprint server, and how it/the phone responds from failing to send while roaming.  I've since turned off roaming, and haven't had a problem for several days.
    Message Edited by slrichardson on 12-22-2008 01:12 PM

  • How do I connect  Apple 20" Cinema Display to orignal MacBook Air which does not have a Fire-Wire port. Is this possible? Any advice would be appreciated. I have the Micro-DVI to DVI adapter. Norm

    I Wish to connect my 6 year old Apple 20" Cinema Display to an orignal MacBook Air which does not have a Fire-Wire port. Is this possible? Any advice would be appreciated. I have the Micro-DVI to DVI adapter. Norm

    The FireWire cable is just for the FireWire ports on the display.  The display will run without it.

  • How can I set up multiple spaces (desktops) on my new MacBook Pro 10.9.5?  I have six set up on my other computer MacBook Pro 10.8.5 but can't find how to do it on this new one.  Would appreciate help on this.  Cheers.

    How can I set up multiple spaces (desktops) on my new MacBook Pro 10.9.5?  I have six set up on my other computer MacBook Pro 10.8.5 but can't find how to do it on this new one.  Would appreciate help on this.  Cheers.

    It's not completely obvious. What you have to do in Spaces is to position your cursor to the upper right of the screen, after which faint + (plus) sign appears in that area. Click that, upon which another Desktop will appear.
    The + may be difficult or impossible to see with some desktop backgrounds (black, for instance):

  • In iTunes the iPhone device icon will not show up whenever I plug in a USB into my PC but the iPhone icon will show up in 'This PC'  so if anyone who knows a resolution to my problem with my iTunes or PC,it would really help me.I need at least Help or Tip

    In iTunes the iPhone device icon will not show up whenever I plug in a USB into my PC but the iPhone icon will show up in 'This PC'  so if anyone who knows a resolution to my problem with my iTunes or PC,it would really help me.I need at least Help or some Tips.I have already tried many things to iTunes and my PC like trying to restore my PC but that do anything.Also,would it be fine if i contacted (call) Apple Support? Please,I need help because what I think is wrong is my PC,iPhone,or USB might be messed up so if anyone could help me with this,it would be really helpful and for anyone to be nice enough to help me.

    I think this article will help you.

Maybe you are looking for