Help printing information

hi
i have a class "Club"
it contains an ArrayList, add and remove methods and a method to retrieve player details. (The code for class Club is provided below).
i want to write a new class called Main which prints out the information held about each player in the club.
is this possible and if so how would i go about achieving this?
Any help would be greatly appreciated.
Many thanks.
public class Club
    public String clubname;
    ArrayList<Player> players = new ArrayList<Player>();
    public Club(String clubname)
       this.clubname = clubname;      
    public void addPlayer(String firstname, String surname, int age, double height, int weight, int gamesplayed, int runsscored, int timesdismissed)
        players.add(new Player (firstname, surname, age, height, weight, gamesplayed, runsscored, timesdismissed));
    public void removePlayer(String firstname, String surname, int age, double height, int weight, int gamesplayed, int runsscored, int timesdismissed)
        players.remove(new Player (firstname, surname, age, height, weight, gamesplayed, runsscored, timesdismissed));
    public void addBowler(String firstname, String surname, int age, double height, int weight, int gamesplayed, int runsscored, int timesdismissed, int ballsbowled, int wicketstaken, int runsconceded)
        players.add(new Bowler (firstname, surname, age, height, weight, gamesplayed, runsscored, timesdismissed, ballsbowled, wicketstaken, runsconceded));
    public void removeBowler(String firstname, String surname, int age, double height, int weight, int gamesplayed, int runsscored, int timesdismissed, int ballsbowled, int wicketstaken, int runsconceded)
        players.remove(new Bowler (firstname, surname, age, height, weight, gamesplayed, runsscored, timesdismissed, ballsbowled, wicketstaken, runsconceded));
    public void addWicketKeeper(String firstname, String surname, int age, double height, int weight, int gamesplayed, int runsscored, int timesdismissed, int catches, int stumpings)
        players.add(new WicketKeeper (firstname, surname, age, height, weight, gamesplayed, runsscored, timesdismissed, catches, stumpings));
    public void removeWicketKeeper(String firstname, String surname, int age, double height, int weight, int gamesplayed, int runsscored, int timesdismissed, int catches, int stumpings)
        players.remove(new WicketKeeper (firstname, surname, age, height, weight, gamesplayed, runsscored, timesdismissed, catches, stumpings));
    public Player retrievePlayer(String firstname, String surname)
        Player retPlayer = null;
        for (Player player : players)
            if (player.getFirstname().equals(firstname) ||
              player.getSurname().equals(surname))
                retPlayer = player;
        return retPlayer;
    public String getClubname()
        return clubname;
}

hi,
iv written the following code in my main class
however, i want to write a getDetails method in the player class
i dont know where to start with this
i would appreciate any help on the matter
thanks very much
public class Main
     public void playerDetails(Club theClub)
          List<Player> playerList = theClub.players;       
          for(Player p : playerList)       
                  System.out.println(p.getDetails());       
}

Similar Messages

  • I installed a new printer and now Photoshop Elements tells me I can't print.  The error message is "The saved printer information is not compatible with this version of Photoshop Elements, or the saved printer is no longer available.  You will need to che

    I installed a new printer and now Photoshop Elements tells me I can't print.  The error message is "The saved printer information is not compatible with this version of Photoshop Elements, or the saved printer is no longer available.  You will need to check your printer settings before printing."  I have uninstalled and re-installed Photoshop Elements, checked my printer settings and still I can't print a photo.

    Hi ,
    Please update to PSE 13.1
    13.1 has solved this problem.
    Refer to this link.
    Photoshop Elements Help | Printer errors with Photoshop Elements 13

  • The saved printer information is not compatible with this version of Photoshop

    Hello,
    I hope somebody can help us. I am a IT Technician in a school, we have approx 500 Windows 7 64bit machines with about 600/700 users - 200 machines have the CS5.5 Master Collection installed on them. We have an intermittent issue with printing from Photoshop (both the 32bit and 64bit versions). Our printers are mostly HP LaserJet printers (all modern), but we have an Epson B-510DN Inkjet and some Xerox copiers too. The drivers are all installed on a central print server running Server 2008 R2 and shared via Group Policy to client machines.
    In rooms where Photoshop is installed, intermittently when a student goes to print we will recieve the following error:
    The saved printer information is not compatible with this version of Photoshop, or the saved printer is no longer available. You will need to check your printer settings before printing.
    Photoshop will then grey out the 'Print' button and won't let the user print again. The odd thing is that we can still print from other software such as Microsoft Word or even non Microsoft software - even Illustrator will print. It just seems to be Photoshop thats has any issues.
    This happens when printing to any printer on site, 90% of which are HP's. As a general rule we configure all of our HP printers with HP's PCL6 Universal Print Driver as it makes management of various printer models easy, and we haven't found it to limit us atall yet. We are aware the Adobe software is 'preferential' to Postscript drivers but our printers arn't, being HP's PCL is their native language. We have tried changing a printer to the Postscript UPD driver to test it but it made no improvement. We have also seen the issue quite indepth with our Epson B-510DN which is configured with Epson's latest model specific driver as our photography department use it. Since we are seeing it with different printers I don't believe the printer drivers are to blame - unless somebody want's to prove me wrong.
    Like I say the problem is intermittent, and we are having trouble tracing it down to a user, computer or a software problem as it is so intermittent. Has anybody else seen this and managed to overcome it? Since it's only happening in Photoshop is it a bug that Adobe have recognosed and fixed in CS6? The only workaround we have found for it is to go into printers, chnage the defualt printer from one to another and back again - this seems to shut Photoshop up.
    Thanks, Dave.

    Chris,
    Apologies for my slow reply - we have been busy here the past few weeks.
    We are using a standard Microsoft provided JPG image (Tulips.jpg) so we have ruled out it being an issue with the image; perhaps if we were using a PSD, maybe so.
    We have now found out what the issue is, and what the workaround for this bug is. All of our printers across our site are named in a specific format, usually [Location name] [Room number] [Mono or Colour] resulting in printer names such as Photography A11 Colour, Art A2B Colour and Design Technology A14 Colour. All of these names contain numbers. We have tried reimaging machines, reinstalling Photoshop, upgrading to CS6, deleting and reconfiguring printers with the same name. Finally the only solution that worked was to take the numbers out of the name, either by renaming or deleting and reconfiguring the printers. The Photography printer is an Epson B-510DN using a model specific driver and the other two use the HP PCL6 UPD driver, so I don't believe the drivers are to blame and since renaming the printers work I don't believe it's a configuration issue either. Remember that these printers are shared from a print server and deployed via Group Policy (using the Print Management method).
    I hope this provides you Chris, and others searching Google, a useful explanation of the problem and what the fix is. As much as Adobe won't admit it's a problem/bug, I and many others across the internet believe that it is and that it should be fixed in future versions of Photoshop.
    Thanks, Dave.

  • I have PSE13 on my system.  It was functioning properly and now I get these messages when I go to print:  "The saved printer information is not compatible with this version of Photoshop Elements, or the saved printer is no longer available.  You need to c

    I have PSE13 on my system, Windows 8.1, 64-bit.  It was functioning properly after installation and now I get these messages when I go to print:  "The saved printer information is not compatible with this version of Photoshop Elements, or the saved printer is no longer available.  You need to check your printer settings before printing."  and then this statement:  "Default printer could not be opened."  I have reloaded drivers for both printers and made any upgrades possible.  It was working fine before and now all of a sudden, nothing.  Would prefer to have old PSE v.12 back, it worked with no problems.

    See this thread
    My Photoshop Elements 13 doesn't recognize my Canon PRO-10 printer. I've tried EVERYTHING. Reinstalled all my software, didn't fix anything. Can anyone help?

  • Photoshop CS5. Saved printer information is not compatible with this version of Photoshop

    I am hoping someone has experienced this problem. I am working at a clients
    office which has a large Konica Printer. When I first started using Photoshop at this office I
    could print directly from PS to thier printers. Then a printer driver change or something I cannot pinpoint changed and I began getting the Error Message: The saved printer information is not compatible with this version of Photoshop, or the saved printer is no longer available. You will need to check your printer settings before printing. I click OK and the second Error Message appears: There was an error opening your printer. Printing functions will not be available until you have selected a priner and reopened any documents. The radio button has the single response word "Cancel". After clicking that button the printing is grayed out and until I go into Color Settings and change the setting drop down box to something else, close PS and reopen the, or any file and the same thing occurs. Ihad the IT department down here and after an hour he clicked on settings and tinkered around until all of a sudden the printing was enabled. It worked until the printer driver was updated. Once again the IT guy was down here and didn't remember what he did, tinkered around and after changing the color settings to: Monitor Color, it printed. Here we go again, printer settings were randomly changed so we reinstalled the printer driver and again PS is not printing.
    Is there anyone who has experienced this issue who can help me make sense of this insanity. Is there a sequence of setting changes, opening of the program and file that is allowing the color management to stop interferring with my printing other than Gremlins in this machine? I have not found anything Googling on this issue. Please help me . . . Annette

    I don't think I have an answer for you about exactly what went wrong, but one thing that can help with understanding the messages (and maybe can help you and your IT people figure it out) is this:
    Photoshop saves the information about the last printer the document was printed to as metadata in the document file.  So if you make a print then save the PSD, the printer info is in the PSD.
    If recently you opened an image that had previously been printed at another place (and which didn't have an exact match to the printer available in your current location), then you can start to imagine these error messages making a bit more sense.  Things like "The saved printer information" begin to have meaning.
    Hope this helps.
    -Noel

  • I cant print and get this message, "adobe elements, "the saved printer information is not compatible with this version of photoshop elements, or the saved printer is no longer available. you will need to check with your printer settings before printing."

    I keep getting this message when trying to print in adobe elements, I am using a new Epson WF-3640 printer
    "the saved printer information is not compatible with this version of photoshop elements, or the saved printer is no longer available. you will need to check with your printer settings before printing.

    Hi,
    If you are working in PSE13, please update it to latest PSE13.1 update available and see if it helps.
    To apply update, you can go to Help > Updates and there you can see PSE13.1 update.
    Thanks,
    Anwesha

  • I cannont print from Elements 13.  Error message says "saved printer information is not compatible

    I am getting the following error in elements 13 when I print a jpg to my Epson stylus 2000.  "the saved printer information is not compatible with this version of photoshop elements.

    Hi ,
    Please update to PSE 13.1
    13.1 has solved this problem.
    Refer to this link.
    Photoshop Elements Help | Printer errors with Photoshop Elements 13

  • Printer error: "The saved printer information is not campatible with this version of Photoshop"

    The saved printer information is not campatible with this version of Photoshop.

    Hi there! Because the forum you originally posted in is for beginners trying to learn the basics of Photoshop, I moved your question to the Photoshop General Discussion forum, where you'll get more specialized help.
    However, the information you posted is not sufficient enough for us to provide you with a helpful answer. To help others help you, please read through this article and provide any additional relevant details.

  • LV acquire the print information from the embed board with Linux system through serial port

    I want to acquire the print information by LV from the embed board with Linux system through serial port, like the window hyperterminal tool?
    I try to use VISA serial config function to achieve it ,but lost and prompt that is error like attachment.
    I can't sure that my idea is reasonable.
    help me
    thanks a lot!

    I ended up finding the answer to my problem. After pointing a client directly at one of the DPS systems, I saw the following error in the logs:
    [27/Jul/2009:17:11:47 -0400] - OPERATION  - INFO  - conn=3688 op=4 BIND RESPONSE err=12 msg="The server is not configured to pass through control 1.3.6.1.4.1.42.2.27.8.5.1" etime=0After adding that control OID to the allowed-ldap-controls, I could login via password auth. Adding this control also allowed for password changes to work from a client system.

  • Google cloud print for officejet pro 8600 - could not get printer information from hp.

    I just purchased a new OfficeJet Pro 8600 today. Everything seems to work great except for the connector to Google Cloud Print. I can print from AirPrint, as well as emails to the hpeprint.com address, but when I try to register via the google site, I receive the "could not get printer information from HP" error message.
    The printer is connected via wireless ethernet, and seems to work find otherwise. I have no restrictions on who can send print jobs, and I have changed the email address for hpeprint.com a few times, as suggested in other forum threads, but it can never connect to the the Cloud Print service. I am at the latest firmware level listed on the HP website. I have tried to initiate the connection from multiple PC's as well as multiple web browsers.
    This was a big factor in purchasing this printer. Help anyone?
    This question was solved.
    View Solution.

    Hey rch33k, I am sorry for the ongoing issue that you are having accessing Google Cloud Print. This is being looked into as this is not a singular issue and is affecting other customers as well.  Engineers are currently investing this problem to try and provide a solution to it.  I want to again apologize and thank you all for your patience in this matter.  They only other thing to attempt at this time is to contact Google for further assistance to see if anything can be done on their end. Hopefully this will be fixed quickly
    I am a former employee of HP...
    How do I give Kudos?| How do I mark a post as Solved?

  • Google cloud print "could not get printer information from hp"

    As of today google cloud print has stopped working with my laser jet pro. I started getting an error message that "hp eprint is unavailable at this time". I decided to remove my hp printer from google cloud print. I haven't been able to add it back in since. Every time I try to verify the printer with google cloud print I get the error message "could not get printer information from hp". Everything seems to be configured properly as far as I can tell. I even removed the printer from hp connected and readded the printer and have changed my printers email address. Help please! I am on Chrome OS and this is the only option I have to print.  

    The issue just kind of resolved itself today and I was able to add the printer. I'm assuming it was some kind of server issue on hp's end because I haven't changed anything since yesterday. 

  • How to print information from my Apple I pad to my HP Photosmart D110 series printer

    How to print information from my Apple I Pad to my HP Photosmart D110 series printer ?

    Hello 518,
    Welcome to the HP Support Forums!
    It would appear that the HP Photosmart Plus 209B is not compatible with AirPrint. Without AirPrint you can only print via an App.
    I suggest the ePrint App. Getting Started with HP ePrint Mobile Apps<---
    Cheers,
    JERENDS
    I work on behalf of HP
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to the left of the reply button to say “Thanks” for helping!

  • Printer information not compatible

    Elements 11.0
    Win7 Enterprise
    1st Error msg: "The saved printer information is not compatible with this version od Photoshop Elements.... etc"
    Followed by
    2nd Error msg: "There was an error opening your printer. Printing functions will not be available... etc"
    What have I tried?
    Resetting preferences from Edit->Preferences->General   = No effect
    Deleting ..adobe'photoshop elements\11 folder from appdata = No effect
    Enviornment: I'm a long time CS user who has purchased Elements to go on a third PC so that I don't break licensing agreements. This PC is in an office running a Win 7 SOE that is locked down quite tightly (so I have no control over printer drivers) The base SOE is rolled out to over 2000 users. The printer driver concerned is an enterprise-wide Ricoh driver that sends to a 'follow-me' queue. There are many CS5, CS6 and earlier Elements users in the enterprise using this driver without issue - I believe I'm the first Elements 11 user. All other applications (inc Acrobat and Office 10 suite) print without issue. There are no other printer drivers allowed on the machine (big green policy thing here).
    Workaround: Work in Elements, save to TIF, print from Gimp (or any other application). Not a good way to things, much hilarity at my expense from others in the office (mostly Mac users).
    Clearly Elements is being a bit of a drama queen over this. Any idea for a fix?

    However....  You've put me on the right track (so marked as Helpful)!
    I'll post the fix here in case it's useful to anyone else
    Change the default printer, in Windows, to MS XPS writer
    Start Elements, create a new image, File -->print (elements was now able to offer me a print dialog)
    In the Print dialog, change to the correct printer and print
    Exit Elements change the default back to the original printer
    Restart Elements - No errors
    The obvious question is Why? Obviously there is nothing wrong with the driver, it now prints perfectly
    I suspect a bug...

  • Print information from a row - Report Builder 3.0 - printer button option?

    Does Report Builder have any way of printing information from a row selection onto a page, rather than the whole report?  I don't think it has a print button option when you create the report? 

    Hi KittyCat101,
    According to your description, you want to select some particular rows when printing the report. Just as you said, there is no such feature in Reporting Services.
    To work around this issue, we can create a parameter with the key field value in the report. Then we can print the particular rows based on the selection in the parameter. For more details, please see:
    Create a multiple parameter named filter in the report.
    Specify Available Values and Default Values from the dataset key field which is acted as filter when printing the report.
    Add a filter as below in the tablix:
    Expression: [Key field]
    Operator: In
    Value: [@filter]
    When we render the report in report builder, it displays all data. While we can select the particular rows in the drop-down list when we want to print the report.
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Saved printer information is not compatible with Photoshop Elements 11

    Hello - After successfully using PSE11 to print photos on my Epson Artisan 810 printer, the printer died and was replaced with an Epson Artisan 837 printer.  The new printer works on ALL of my other applications EXCEPT I receive the following error message after hitting 'print' on Photoshop Elements 11.
    MESSAGE:
    The saved printer information is not compatible with this version of Photoshop Elements, or the saved printer is no longer available.  You will need to check your printer settings before printing.
    You can see from the screen print attached that the Epson Artisan 837 is a validly installed printer.  All advanced settings were available for selection/modification, and all printer drivers are up to date.  Also, uninstalled and reinstalled the printer without resolution of the problem.
    Can anyone please point me in the right direction to resolve this issue?
    Thanks so much, Debbie
    Running:
    Windows XP sp3 (up to date)

    You did indeed lead down the correct path with only a little modification required in the naming (see below).  Thank you so very much!! 
    Here's what I had to do to get this to work:
    1 - I first tried to rename this printer to a generic 'DSLW Printer'.  This renaming worked for ALL OTHER applications except Photoshop Elements 11 even after rebooting my PC.  Received the identical error message listed in the original message.
    2 - I then renamed the printer as 'EPSON Artisan 810 Series'.  This was of course a lie but matched the printer as named by the 2010 original Artisan 810 installation.  VOILA!  This does work for Photoshop Elements 11 (jpg and psd files tested) and the other applications that I've tested.  Hopefully all other testing will provide equally successful results.
    So problem seems to be resolved BUT is this a question/problem that I should pursue with either Adobe or Epson?  I do know that the 810 and 837 only differ in the ability to print from a wider variety of wireless devices (e.g. cell phones & tablets), otherwise the functionality is virtually identical.  Did Epson drop the ball or did Adobe?  Or maybe it's simply that I'm a die hard XP sp3 (32 bit) user until forced out by Microsoft.
    Thanks again!!
    Debbie

Maybe you are looking for