.class and ) expected error messages

I know this is possibly the most pathetic question to be asked and im going to look like a dumbass but can anyone explain to me why i keep getting error messages while trying to use this method.
endGame(fuelSold[], fuelQuant[]);
private static int endGame(int fuelSold[], int fuelQuant[])
           int[] total = new int[4];
           int totalTotal;
           total[0] = fuelSold[0] * fuelPrice[0];
           total[1] = fuelSold[1] * fuelPrice[1];
           total[2] = fuelSold[2] * fuelPrice[2];
           total[3] = fuelSold[3] * fuelPrice[3];
           totalTotal = (total[0] + total[1] + total[2] + total [3]);
           System.out.println("This system is out of stock we have sold: ");
          System.out.println(fuelSold[0] + " litres of 4 Star Petrol totalling: " + total[0] + " pounds");
          System.out.println(fuelSold[1] + " litres of SuperGrade Petrol totalling: " + total[1] + " pounds");
          System.out.println(fuelSold[2] + " litres of Diesel totalling: " + total[2] + " pounds");
          System.out.println(fuelSold[3] + " litres of SuperGrade Diesel totalling: " + total[3] + " pounds");
          return totalTotal;
     }

If you know for a fact that position 0 of the arrays will hold data about 4 Star Petrol, and that position 1 will hold data about SuperGrade Petrol, etc., then instead of having two arrays, you should have a class that encapsulates this data.

Similar Messages

  • How to find the Message Class and ID for messages in WebIC

    Dear Experts,
    I get some error messages in the WebIC
    I went to SAAB to activate and see details on the error messages
    But, what i am missing is the the message class and the ID information
    Can any one tell me if there is a work around to check and find out which message class and ID the message belongs to
    Regards,
    Raj

    Hi Raj,
    Put a break-point in method get_instance or ADD_MESSAGE of class cl_bsp_wd_message_service.
    Best regards,
    Caíque Escaler

  • [svn:bz-trunk] 8257: Updated expected error message to match current error.

    Revision: 8257
    Author:   [email protected]
    Date:     2009-06-25 13:50:44 -0700 (Thu, 25 Jun 2009)
    Log Message:
    Updated expected error message to match current error.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/messagingService/validation/wron gTypeValidatorTest/error.txt

    This is the error:
    I also tried restarting the computer, no help.  Is this one of those cases where the preference file needs to be deleted and rebuilt?

  • Can anyone help me connect my Macbook Air to a SAMSUNG TV.  When I follow the basic instructions (Thunderbolt to HDMI connection) the screen on my computer goes grey and an error message appears inviting me to press any button to restart th

    Can anyone help me connect my Macbook Air to a SAMSUNG TV.  When I follow the basic instructions (Thunderbolt to HDMI connection) the screen on my computer goes grey and an error message appears inviting me to press any button to restart the Macbook.  When I do this nothing happens.  Only when I disconnect the computer from the TV does the Macbook allow me to login. The TV does not receive any signal from the Macbook even though I know the HDI port works fine.  Any ideas what I'm doing wrong?  Do I need to enable something on the Macbook?

    An update...
    I downloaded Apple's (rather large!) list of software updates today, and I was finally able to recognize my iPod again. I did a restore using the iPod updater from 06-2006, and all seemed to work OK. (I'm afraid to try the new one again!)
    Then I tried to re-load my music library from iTunes, and got stuck. It froze up after a while and wouldn't go any further.
    When I disconnected my iPod from my computer, I find 2 podcasts and nothing else, though iTunes told me it had transferred 600+ songs. Those 2 podcasts do play fine, and the basic iPod software all seems to be intact.
    So -- anyone get through this connection problem and have any ideas to share??
    iMac Mac OS X (10.4.7)

  • I have updated my iTunes to the latest edition and now my iTunes wont open saying MSVCR80.dll is missing from my computer and that i have to reinstall itunes. I have tried reinstalling twice now and this error message keeps appearing. What is going on?

    I have updated my iTunes to the latest edition and now my iTunes will not open saying MSVCR80.dll is missing from my computer and that i have to reinstall itunes. I have tried reinstalling twice now and this error message keeps appearing. What is going on?

    Solving MSVCR80 issue and Windows iTunes install issues.

  • Prompted to upgrade iTunes on computer. Won't let me and get error message MSVVR80.dll not found. Attempted to reinstall, won't let me. Can you have iTunes and iCloud on the same computer?

    Prompted to upgrade iTunes on computer. Won't let me and get error message MSVVR80.dll not found. Attempted to reinstall, won't let me. Can you have iTunes and iCloud on the same computer?

    Try following the instructions of tt2 in https://discussions.apple.com/thread/5822086

  • Wdr:select_options and highlight Error Message with a Link to Inputfield

    Hi,
    I have created a InputField on a View using WDR_SELECT_OPTIONS. I want to validate this Input Field and give
    Error Message, when User fill it with wrong Values. How can we achieve this and important is to mark it on Screen WITH a RED STAR. ( e.g. highlighted )
    Thanks!
    Best Regards
    Beserithan Malabakan

    I've not tried it with select options before, but you might wan to have a look at setting the REPORT_ATTRIBUTE_ERROR_MESSAGE method of the message object.  This way the message gets attached to any UI element bound to the context attribute you issue the message for. But as I type this and think about it some more; I see where the problem lies.  The Select Options component doesn't follow an approach of cross component context binding.  It dynamically generates its own context.
    If I had a little more time I would test this out; but it might be worth your while to research.  When you initialize the Select-Options, you normally get access to the interface controller:
    data: l_ref_cmp_usage type ref to if_wd_component_usage.
      l_ref_cmp_usage =   wd_this->wd_cpuse_select_options( ).
      if l_ref_cmp_usage->has_active_component( ) is initial.
        l_ref_cmp_usage->create_component( ).
      endif.
    * get a pointer to the interface controller of the select options
    *component
      wd_this->lv_wd_select_options =
           wd_this->wd_cpifc_select_options( ).
    * init the select screen
      wd_this->lv_sel_handler =
           wd_this->lv_wd_select_options->init_selection_screen( ).
    This interface controller (LV_WD_SELECT_OPTIONS in my case). Has a GET_API method that returns the component controller.  In turn you might be able to access the context of the Select-Options directly. Its a crazy idea, but worth a try.

  • FM SSF_CLOSE failing and giving error message while printing a smartform

    Hi,
    for language spanish the smartform is not getting printed for output type SG11 but for english it is getting printed? What could be the reason? I debugged and found that SSF_CLOSE is failing and giving error message.
    Thanks and regards,
    AP.

    Hi Aparajita,
    for changing from one languages to another translations in SE63 is to be done, either search on SCN for using SE63 , or atleast see these wiki help .
    Transaction SE63 - Translation Tools for Translators (BC-DOC-TTL) - SAP Library
    Transaction SE63 (SAP Library - Translation Tools for Translators (BC-DOC-TTL))

  • Itunes was working fine. Tries to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue.

    Itunes was working fine. Tried to install latest upgrade and get error message about an invalid character in the path "Program Files (x86)". PC, Win7, nothing else appears to be having same issue. Program still works, simply cannor upgrade.

    Thanks b noir,
    I tried this solution without success. After FixIt ran and didn't find a problem, either in looking for issues with "software upgrade" or "iTunes" it kindly offered to help me uninstall iTunes. I had thought of this as a possibilty but it seems to me that if you do that you lose a lot of "non-native-to-Apple" information you might have entered. I did this once and recovery was painfull. Is there a way to uninstall iTunes without losing all of that sort of thing? Any help would be appreciated.

  • Can not update Photoshop CC (2014) and receive error message U43M1D206. What do I do?

    Can not update Photoshop CC (2014) and receive error message U43M1D206. What do I do?

    Bump
    I am also having the same issue with a lot of the softwares i have downloaded. Its unable to download the initial patch update.

  • I am running Windows 7 (64bit) , and an error message appears following a recent update to iTunes v 11.1.2:  "iTunes could not connect to the iTunes store. An unknown error occured (-3212). Make sure your network connection is active and try again." help!

    I am running Windows 7 (64bit) , and an error message appears following a recent update to iTunes v 11.1.2:  "iTunes could not connect to the iTunes store. An unknown error occured (-3212). Make sure your network connection is active and try again." I have dug a little bit into possible problems but haven't found a solution yet, one note is that the network connection is OK. A response would be highly appreciated!  Thanks in advance.

    Hi c1r1g1,
    If you are having an issue connecting to the iTunes Store, you may find the following article helpful:
    Apple Support: Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    - Brenden

  • I am running windows xp. Trying to download latest version of iTunes and get error message: Microsoft Visual C  Rundtime Library. Runtime Error. Program:C\ProgramFiles\iTunes\iTunes.exe. R6034 An appliction has made an attempt to load the C runtime librar

    I am running windows xp. Trying to download latest version of iTunes and get error message: Microsoft Visual C  Rundtime Library. Runtime Error. Program:C\ProgramFiles\iTunes\iTunes.exe. R6034 An appliction has made an attempt to load the C runtime library incorrectly. Please contact the appliction's support team for more information.
    2nd/ message: iTunes was not installed correctly. Please reinstall iTunes. Error 7(Windows error 1114)
    I have removed iTunes serveral time and tried to reinstall many times and get the same results noted above.
    Can anyone help me? Thank you. EFS1

    Hello DrJMDDC,
    Thanks for using Apple Support Communities.
    For more information on this, take a look at:
    Removing and reinstalling iTunes and other software components for Windows Vista, Windows 7, or Windows 8
    http://support.apple.com/kb/ht1923
    1. Remove iTunes and related components from the Control Panel
    2. Verify iTunes and related components are completely uninstalled
    3. Reinstall iTunes and related components
    Best of luck,
    Mario

  • I have tried several times to install iTunes update 11.1.4 on my PC.  I get a message saying that install was not successful and an error message of MSVCR80.dll not present, Error 7, (Windows error 126).  I am told to reinstall iTunes, but nothing changes

    I have tried several times to install iTunes update 11.1.4 on my PC.  I get a message saying that install was not successful and an error message of MSVCR80.dll not present, Error 7, (Windows error 126).  I am told to reinstall iTunes, but nothing changes.  What next?  I've not had this problem with other updates requested by Apple.

    I have also had the same problem with my Win 7 32 bit computer.  I had great help from Apple techs in Montreal and Orlando for 2.5 hours.  They helped me remove every trace of Apple products and clean the registry in two different ways.  Each install gave the same problem!  If Apple techs can't fix it (on some of our machines) then we are really in trouble.  They promised to raise it with the "engineers" and get back to me with a solution.  I am waiting and hoping.  Otherwise maybe version 11.1.5 will have a fix ??

  • HT2497 I just purchased the 2TB TC and set it up on bridge mode to my att verse which is connected via ethernet cable.  The TC is continually blinking amber and an error message states that a wireless network cannot be found but the uverse is functioning

    I just purchased the 2TB TC and set it up on bridge mode to my att verse which is connected via ethernet cable.  The TC is continually blinking amber and an error message states that a wireless network cannot be found but the uverse is functioning great.  The network name I assigned to the TC is also not appearing among available networks.  How do I remedy this, please?

    What OS on the computer you are using to setup the TC?
    Did you turn on ipv6 for wireless to link-local... this is essential for network access now??
    Try power cycling the network.. start up in correct order.. uverse.. 2min wait.. TC.. 2min wait.. computer.
    No luck factory reset and start over. Use ethernet cable as well to the computer to help it.
    No luck I can show you manual method.

  • Trying to make a dvd from a project and this error message appears .The project could not be prepared for publishing because an error occurred. (-2125)

    Trying to make a dvd from a project and this error message appears .The project could not be prepared for publishing because an error occurred. (-2125)

    Hi
    Error -2125
    OK Error code - 2125 usually indicates that the movie is to large.
    It use to pop up when going to iDVD !
    iDVD - DO NOT CARE ABOUT Gbs at all. I got movies on 500Mb that do not fit and 50Gb that fits nicely.
    iDVD - ONLY CARES ABOUT - Duration. Duration is Movie time + MENU TIME. Choice of
    menu and animation of this can take lost of "DURATION" 15 minutes or even more.
    Choice of encoding method and use of SL or DL DVDs determine the DVD limit.
    iDVD 08 & 09 & 11 has three levels of qualities.
    iDVD 6 has the two last ones
    • Professional Quality (movies + menus up to 120 min.) - BEST
    • Best Performances (movies + menus less than 60 min.) - High quality on final DVD
    • High Quality (in iDVD08 or 09) / Best Quality (in iDVD6) (movies + menus up to 120 min.) - slightly lower quality than above
    DL DVDs can store about double of these times.
    ALTERNATIVE - The Error Code can indicate that free space on Start-up (BOOT) hard disk is
    less than 25Gb (my minimum)
    calbe - wrote
    If you are getting OSStatus error -2125, I've seen this caused by the computer display sleep settings.
    Try changing the sleep settings to never and see if you are able to export.
    Yours Bengt W

Maybe you are looking for

  • How can I change my App Store from mex to us

    My iPad store is Mexico and I want to put it in the us.

  • How do I create an app inventory

    Unfortunately, I am an app addict and I have too many apps. I love the features recently implemented to see the apps purchased.  I want to be able to create an app inventory or database. I have checked out the apps that say they are for keeping track

  • FileOpen Plug-in for Adobe Acrobat/Reader

    When attempting to open a file the adobe updater wants to install this plugin "FileOpen Plug-in for Adobe Acrobat/Reader". After installation it dose the same thing wants to install "FileOpen Plug-in for Adobe Acrobat/Reader " over and over. The file

  • Creating Editable PDF from Form Created in LiveCycle

    I believe the anwser is no, but I want to confirm. If I create a pdf form in LiveCycle Designer, can I load and populate that pdf form with a different library such as iText or do I have to use continue to use the LiveCycle PDF Services. (2.5) Thanks

  • Electronic Lead letters not showing signatures

    Hi, We're having a problem in Sales and Marketing. When the users create a generic letter using Master Documents, they are allowed to insert a signature (.jpg) at the end of the letter. The problem is, this letter is for some reason, saved as .zip (w