Java '.class' expected, simple but im not seeing it

I'm working on a project right now and need to list 3 parellel arrays. This is what my compiler error looks like.
'.class' expected ')' expected
It's really bugging be, so here are the two methods.
This is the code that my info is being sent to. This method is in a class named ListPets
public void listPets(String[] name, double[] price, int[] quanity)
          for(int i = 0; i<name.length; i++)
               output+="\n"+name[i]+"       "+price[i]+"          "+quanity;
this is what is being sent to it
This code is in a class called MainGui
I also have this little bit at the top.
ListPets panList = new ListPets();
     public void actionPerformed(ActionEvent ae)
     panList.listPets(petname[], petprice[], petquanity[]);
}I feel like im over looking somthing, but i cant find it. Any help on this would be nice, thanks,

panList.listPets(petname[], petprice[] , petquanity[]);You are trying to call a method in the line of code above. So you should only include the variable names, like thispanList.listPets(petname, petprice, petquanity);Some feedback on your design: It looks like you have (at least) 3 arrays whose contents relate to each other. That is, petname[2] is a pet type's name, petprice[2] is the same pet type's price and petquantity[2] is the same pet type's quantity. In Java, you should not use "parallel arrays" to associate the contents of arrays. Instead, you should have a class - that's the whole idea of object oriented programming.

Similar Messages

  • I just purchased a movie and I can't get the iTunes extras to play, the unrated version plays but I want to watch the special features . Am I just stupid or is there something simple I am not seeing?

    I just purchased a movie and I can't get the iTunes extras to play, the unrated version plays but I want to watch the special features . Am I just stupid or is there something simple I am not seeing?

    Hello there, NighHawk420.
    The following Knowledge Base article provides some practical information on where to locate the iTunes Extras when purchased with a movie from iTunes:
    About iTunes LP and iTunes Extras
    http://support.apple.com/kb/HT3823
    When you purchase a movie with iTunes Extras, the primary movie along with the iTunes Extras will download to your iTunes Movie folder. Mouseover the cover art and click the icon on the album to open the main menu to play the movie or view other features.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro.

  • When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and th

    When I have video clips on my timeline, they do not play in the monitor screen. I hear the sound track but can not see the image. To test if my new files are somehow the problem, I went back and used video files that I used successfully a year ago, and they no longer play in the monitor window. I hear the sound track, but do not see any video. Have I changed some setting that controls video playback in the monitor window?

    Randy Ruttger
    Thanks for the follow up.
    Missing in this equation were the version of Premiere Elements that you were using and the computer operating system on which it was running. But...
    The deed is done. But.....Until now and after you went ahead and moved to version 12, we now learn what version of Premiere Elements you were using. We still do not know the computer operating system involved.
    You just said Premiere Elements 10. Premiere Elements 10 is hit by a serious known display issue if the computer uses a NVIDIA GeForce video card/graphics card. In this issue, the only remedy is to roll back the driver version to about May 2013. The description of the problem and how to do the roll back are described in one of the Announcements at the top of this forum. What video card/graphics card does your computer use?
    On another front, Adobe will be releasing a new version of Premiere Elements any day now. No one but Adobe knows the feature set for the new version. That type of information is announced at the moment of release of the new version.
    So the remedy to the problem that you presented in this thread could have been...
    1. Rolling back the NVIDIA GeForce driver version to about May 2013 if possible (Windows 8 or 8.1 64 bit, may not be possible)
    2. Move to another version of Premiere Elements (which you did)
    I offer the above for consideration so that you can review your decisions. We are pleased to learn that Premiere Elements 12/12.1 works for you.
    Please do not hesitate to ask questions and ask for clarifications, but remember that the answers are in the details.
    Best wishes,
    ATR

  • Trying to install MS Office 2011 for Mac SP 2 on my Macbook Air (Lion 10.7.3). I have to close Microsoft Database Daemon and SyncServicesAgent but can not see how to do so.  I have closed all applications.  Can anyone help? Many thanks

    Trying to install MS Office 2011 for Mac SP 2 (14.2.0) on my Macbook Air (Lion 10.7.3). I have to close Microsoft Database Daemon and SyncServicesAgent but can not see how to do so.  I have closed all applications.  Can anyone help? Many thanks

    Thanks Kurt!  I had tried all that and had tried closing both programmes from the application monitor, but SyncServices Agent refused to close.  I tried closing Launchd which is their mother application, but that just caused the screen go go blank.  In the end the two programmes let themselves be closed next time I tried the installation process so all was well.  Thanks for your help!

  • I have a Apple Power Mac G5 Dual 2.3 GHz/6GB RAM/500GB HDD/Superdrive PowerPC Desktop and just bought an Airport Extreme card for it.  The card is recognized but will not see the in-house network.  This is a pre-intel computer.  Do I need an antennae?

    I have an Apple Power Mac G5 Dual 2.3 GHz/6GB RAM/500GB HDD/Superdrive PowerPC Desktop and just bought an Airport Extreme card for it.  The card is recognized but will not see the in-house network.  This is a pre-intel computer.  Do I need an additional antennae?   If so, which one because my research is confusing me about what is supposed to work with this computer.

    Please check out the following Apple Support article to see if your particular Power Mac model supports an external Wi-Fi antenna.

  • Would like to move iPod touch files to my new Windows 8 computer -- but can not see hidden files

    Would like to move iPod touch files to my new Windows 8 computer -- read on how to do this, but this involves being able to see the hidden fiels -- but can not see hidden files...any suggestions. Would like to transfer these files from iPod Touch to new laptop without software -- is that possible -- if not can anyone recommend a good free software to use?

    There is no way to do so without software. I recently had a similiar task and was suggested to use iExplorer. It worked like a charm. 
    Refer to this page for iExplorer
    Here is the page I was helped with on this task for reference: Export Songs
    Hope this helps!
    PSkilton

  • I had the Siri app before it was added to all iphones and when Apple added it mine quit working. I deleted mine from my phone but do not see how to get it back. any suggestions?

    I had the Siri app before it was added to all iphones and when Apple added it mine quit working. I deleted mine from my phone but do not see how to get it back. any suggestions?

    bjorth wrote:
    apparently I have just an iphone 4 not 4s, so thank you.
    It does seem rather odd that an app that was acquired thru itunes would quit working once it was incorporated into the device for all users. oh well it was probably free or $.99 when I downloaded it.
    I would think that they were just testing it to see how many people would use it.  But you might want to write a polite letter to Apple requesting a credit for the purchase price of the no longer supported app.  That seems to be the least they could for one of their 'alpha testers'.

  • Want to use credit card with firefox but do not see a lock with firefox 5 on linux using priceline

    want to use credit card with firefox but do not see a lock with firefox 5 on linux using priceline

    Type '''about:preferences#applications'''<enter> in the address bar.
    Now follow the picture.

  • I have AI CS6 but do not see the option to Package a file. I do not see under File the option for Package

    I have AI CS6 but do not see the option to Package a file. I do not see under File the option for Package

    Thank you for the response. The AI Help did not indicate it was a Cloud
    only feature but that makes sense.
    Thanks again
    Art Needleman
    Division of Visitor Services
    National Wildlife Refuge System
    500 Gold Avenue, SW / Room 4501
    Albuquerque, NM 87102
    505-248-6822
    The question is not what is the sound of one hand clapping but who is
    making that sound. -- C.A.
    On Thu, Jun 12, 2014 at 10:03 AM, Larry G. Schneider <

  • I am trying to update SW on my iPad but do not see a software update option in setting/general tab, please help.

    I am trying to upgrade SW to iSO 5 on my iPad but do not see the software upgrade option under the setting/general tab.  Please help.

    If you have an iPad 1, the max iOS is 5.1.1. For newer iPads, the current iOS is 6.0.1. For the iPad Mini the iOS is 6.0.2. The Settings>General>Software Update only appears if you have iOS 5.0 or higher currently installed.
    iOS 5: Updating your device to iOS 5 or Later
    http://support.apple.com/kb/HT4972
    How to install iOS 6
    http://www.macworld.com/article/2010061/hands-on-with-ios-6-installation.html
    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623
    If you are currently running an iOS lower than 5.0, connect the iPad to the computer, open iTunes. Then select the iPad under the Devices heading on the left, click on the Summary tab and then click on Check for Update.
    Tip - If connected to your computer, you may need to disable your firewall and anitvirus software temporarily.  Then download and install the iOS update. Be sure and backup your iPad before the iOS update. After you update an iPad (except iPad 1) to iOS 6.x, the next update can be installed via wifi (i.e., not connected to your computer).
     Cheers, Tom

  • HT4759 i'm trying to access my new icloud email acct from my mac. I have OS X 10.6.8 and have just completed a software update. But still not seeing how to install my icloud email...?

    i'm trying to access my new icloud email acct from my mac. I have OS 10.6.8 and have just completed a software update. But still not seeing how to install my icloud acct...?

    You must upgrade your OSX to Lion (10.7) minimum, Mavericks (10.9) preferably.

  • I recently lost my iPhone and tried to use "Find my iPhone" but did not see my phone listed. Why is that?

    I recently lost my iPhone and tried to use "Find my iPhone" but did not see my phone listed. Why is that?

    If it is not turned on and connected to the Internet it will not show up.  If has been restored to factory condition it will not show up.

  • We have $10 credit and would like to buy from our wish list but do not see how

    We have $10 credit and would like to buy from our wish list but do not see how

    There used to be a 'buy all' button on the wish list screen, but for some reason it's been removed from the current version of iTunes - you can buy songs etc individually by clicking on their price (not the downward pointing arrow next to the price)

  • TS1368 i try to charge my ipod 4th generation but can not see the battary been charge and also cannot connect to itunes on my computer

    i try to charge my ipod 4th generation but can not see the battary been charge and also cannot connect to itunes on my computer

    Try:
    - iOS: Not responding or does not turn on
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.

  • TS2756 I can not see personnel hot spot in setting cellular, I have restore iPhone 5 twice but can not see this in china, china telecome nano SIM card.

    In iPhone 5 iOS 6.0.2 can not see option in setting for setting>>cellular >> ? How to enable hot spot icon to choose. Cellular service provider china mobile , it's Internet and call service work well, iPhone have restore twice but can not see hot spot option.

    Personal Hotspot is provided by the carrier, but not every carrier offers this service. Contact your carrier to make sure that you can get this option.

Maybe you are looking for

  • IWeb not publishing PayPal button widget

    As per Burns Media (see below). I have taken the proper steps to insert a PayPal button. However the button does not show up on the published site. I've done this in the past and it did work but not now. I have the latest update to iWeb and running O

  • Mapping to a Lookup Table

    O.K. I have a basic Java question and how to do this the following using Java/JDO: I have a database table for a lookup class. It will have the following structure: Create Table ProductStatus Id bigint not null name char (20); In C++ I would have an

  • Audio does not behave correctly when Bluetooth headset disconnects

    When a Bluetooth audio receiver disconnects, Windows reverts to another active audio connection.  However, the programs that were previously using the Bluetooth connection do not transfer to the new audio connection and reactivating the Bluetooth con

  • UnsupportedOperationException after moving to Tomcat 6.0

    I recently started testing my application on JEE 5/JSF 1.2/Tomcat 6.0. It was previously running without error on J2EE 1.4/JSF 1.1/Tomcat 5.5. Upon calling a method via an ActionListener, this exception occurs. It oddly appears to be with a pojo stri

  • Mac OSX: crash crash crash: fix?

    Mac Pro 2.6, oodles of RAM, latest Tiger. I use DW minimally, just light touchups of web pages for clients generated by Lightroom and other apps. DW's worked fine since I installed CS3 last year. Now DW instantly bails the moment I try to save a page