Can't sort out the following errors...

continued from routing system message.....
*****CODE****
package routingSystem;
public class Router {
//attributes
private Machine machineArray[]; //this array is of type Machine. the name
// could be different.
private Machine packingMachine; //The machines that get passed into this class - need to use
//these in the code
private Food processedFood;
//Constructor.
public Router(Machine machineArray []) {
processedFood = null;
public void run(Food processedFood) {
this.processedFood = processedFood;
Machine shortestMachine = machineArray[0];
for (int i = 0; i<machineArray.length; i++){  //check if you need machineArray.length OR use i<machineArray.numberItemsWaiting() method.//
if (machineArray.numberItemsWaiting() < shortestMachine.numberItemsWaiting()) {
shortestMachine = machineArray[i];
shortestMachine.addItem(processedFood); //check machine method names for adding food to the queue.
****end of code****
errors:
Error(12,11): class Food not found in class routingSystem.Router
Error(20,19): class Food not found in class routingSystem.Router
Error(29,23): method addItem(<any>) not found in class routingSystem.Machine
any help would be appreciated...

Error(12,11): class Food not found in class
routingSystem.Router
Error(20,19): class Food not found in class
routingSystem.RouterThese errors are because your code refers to the class Food
but the compiler can't find the class Food.
Is the class Food in the same "routingSystem" package?
Otherwise, you need to import it with a line like
import Food;
goes after the package declaration before the class declaration
Error(29,23): method addItem(<any>) not found in class
routingSystem.MachineYou're invoking a method here:
shortestMachine.addItem(processedFood);
The class of shortestMachine is Machine and the error message says that
you can't invoke addItem(...) on Machine because Machine has no such method. Check your Machine class. Did you write an addItem method?
Fix the Food bug first and recompile - sometimes later bugs disappear when you fix earlier bugs, anyway.
Jean

Similar Messages

  • How can i sort out the N lowiest elements from an 1D array faster than using the build in sort function (1D-array) in Labview?

    I need an algorithm that is based on the same sorting-algorithm that Labview uses (or one that is just as fast) but it only needs to sort out the N lowiest elements (and the N-element output array don't need to be sorted).
    /Jonas

    I want all three zeros in the output. You can se the algorithm that I'm looking for as a soft version of Labviews own sort algorithm that only gives you the N (always less then the length of the array) lowiest values as output.If two elements contain the same small value both should be sorted out.
    /Jonas

  • Hi can someone explain what the following error code mean and how i can recifty to download a copy of ebook purchase Error getting License. License Server Communication Problem: E_ACT_NOT_READY

    Hi can any one help
    I keep getting the following error code when I try and down a ebook which I have purchase
    Error getting License. License Server Communication Problem:
    E_ACT_NOT_READY
    can someone advise me what this means and how I recifty the problem to enable me to read the ebook purchase?
    Thanks

    I am having this exact issue. I just downloaded a book and went to open it and got this exact problem.
    I purchased he book through indigo/kobo edition and paid for it and immediately went to open it and am getting the same error
    Error getting License. License Server Communication Problem only mine says  Bad Device key after.
    Not sure why someone has not answered this question yet...i am using windows 7 and this is how i always do it. Never had this problem before when purchasing a book.
    i hope someone answers this soon.

  • I renamed songs in playlist but the original files aren't renamed. How can I sort out the originals?

    I could really use some help. I'm trying to record an audio book of my second novel. I had about 300 audio tracks from recording the book in iTunes. I put them all in a playlist. Then I went through and delected the tracks that were no good from the Playlist and renamed the others so they were properly sorted by page number.
    Unfortunately, I did not realize that 1) renaming tracks in a Playlist does not rename the actual original tracks, and 2) when I click "Show in Windows Explorer" not only is it the original file names, but they are mixed in with all the other tracks that I had deleted from the playlist.
    Is there any way for me to isolate the tracks that are in the Playlist? I need to pull all those tracks out so I can import them into a music editing software program. I'm worried that all my time was wasted renaming the songs and now I can't figure out any way to group those tracks to import into another program.
    Any advice would be much appreciated!
    Thank you.
    - David David Katzman

    When you look at your iPhone, are you looking in the Music app or in the iTunes app?  Be sure you are looking in the Music app, and look in the Songs category.  If your songs are not here, you may want to try syncing your information again through iTunes.  To do this, uncheck "Sync Music" and then click apply or sync in the bottom right corner of iTunes, and then recheck "Sync Music" and then click apply or sync again. 
    I hope this helps!

  • Can anyone help with the following error message?

    While installing itunes update 7.5 received message Error 1905 module c:\programfiles\itunes\itunesminiplaayer.Dl failed to unregister HRESULT-2147220472

    I noticed no one replied to your questions but was wondering what you found out. I had an ipod shuffle and just replaced it with a 3rd gen ipod nano. The new nano who not show up on my itunes so I went in to update it to the new version and received the same exact error message you did. Were you able to figure out a solution?
    Any help you can give would be greatful.

  • I get the following error message day in and day out, what does it mean -- what can I do to make it go away? The server responded: "403" to operation CalDAVWriteEntityQueueableOperation.

    I get the following error message day in and day out, what does it mean -- what can I do to make it go away? "The server responded: “403” to operation CalDAVWriteEntityQueueableOperation."

    Now it keeps saying that it is restored but there is still no music or video on it. And a new error is coming up that says "We could not complete your iTunes store request.The iTunes Store is temporarily unavailable. Please try again later."

  • HT1766 Whenever I try to backup my ipad to iCloud, I get the following error message and can't work out why " the last backup could not be completed" I am connected to my wi FI and iPad off and connected to power. Please can anyone help ?

    Whenever I try to backup my ipad to iCloud, I get the following error message and can't work out why " the last backup could not be completed" I am connected to my wi FI and iPad off and connected to power. Please can anyone help ?

    In settings>general> cellular do you have it  turned ON?

  • All of a sudden my iTunes stopped working, and I get the following error messages:   1. the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem   and   2. iTunes was not installed correct

    All of a sudden my iTunes stopped working, and I get the following error messages:
    1. the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem
    and
    2. iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 126).
    Now I've checked the forums and followed the advice of uninstalling all Apple applications, rebooting, and reinstalling iTunes.
    This is not working. I've tried installing as Administrator but doesn't make any difference at all.
    There must be a way to fix this? I'm not a tech geek but I want to avoid having to take my laptop back to factory settings to sort this out.
    Thanks

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99192)

  • I am trying to uninstall an earlier version of itunes and get the following error, "the feature you are trying to use is on a network resource that is unavailable" can anyone help

    Hi I am trying to uninstall a previous version of itunes or download a newer version and I get the following error message "The feature you are trying to use is on a network resource that is unavailable" can anyone help please?

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page).
    http://majorgeeks.com/download.php?det=4459
    Here's a screenshot showing the particular links on the page that you should be clicking:
    After clicking one of the circled links, you should be taken to another page, and after a few seconds you should see a download dialog appear for the msicuu2.exe file. Here's a screenshot of what it looks like for me in Firefox:
    Choose to Save the file. If the dialog box does not appear for you, click the link on the page that says "CLICK HERE IF IT DOES NOT". Here's a screenshot of the page with the relevant link circled:
    When the dialog appears, choose to save the file.
    (2) Go to the Downloads area for your Web browser. Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • I have OSX 10.7 Lion I set up a separate email account for my wife.  Now when she tries to enter a website we get the following error message:  Java Script: Not Null validator already loaded.  The website never opens and it is difficult to get out of:

    I have OSX 10.7 Lion.  I set up a separate email account for my wife.  All of a sudden when she tries to enter and website from email we get the following error message.  JavaScript;  The notnull validator has already been loaded.  From there we can't seem to go any where.  When you hit OK it just keeps appearing and the only way to get out of it is to quit Safai.  If you try and got directly to Safari you get the same error message and can't go any further.  Please help.

    What you are experiencing is 100% related to Malware.
    Sometimes a problem with Firefox may be a result of malware installed on your computer, that you may not be aware of.
    You can try these free programs to scan for malware, which work with your existing antivirus software:
    * [http://www.microsoft.com/security/scanner/default.aspx Microsoft Safety Scanner]
    * [http://www.malwarebytes.org/products/malwarebytes_free/ MalwareBytes' Anti-Malware]
    * [http://support.kaspersky.com/faq/?qid=208283363 TDSSKiller - AntiRootkit Utility]
    * [http://www.surfright.nl/en/hitmanpro/ Hitman Pro]
    * [http://www.eset.com/us/online-scanner/ ESET Online Scanner]
    [http://windows.microsoft.com/MSE Microsoft Security Essentials] is a good permanent antivirus for Windows 7/Vista/XP if you don't already have one.
    Further information can be found in the [[Troubleshoot Firefox issues caused by malware]] article.
    Did this fix your problems? Please report back to us!

  • I am trying to update my iTunes to 10.5.1 so that I can upgrade my 3GS phone but am getting the following error message when trying to install the itunes:Install step failed: Run pre upgrade script for apple mobile device support. Contact software manufac

    I am trying to update my iTunes to 10.5.1 so that I can upgrade my 3GS phone but am getting the following error message when trying to install the itunes: Install step failed: Run pre upgrade script for apple mobile device support. Contact software manufacturer for assistance. I am on a MacBook pro running 10.5.8 OS. Has anyone seen this before and how can I get it resolved.
    Thanks for your help in advance....

    Did you ever figure out the problem? "Contact Software Manufacturer"?? That sounds ominous... I've got the same issue and I'm pretty durn aggravated right about now....
    Thanks!

  • Can no longer access blueyonder emails on iphone.I get the following error message: The mail server 'imap4.blueyonder.co.uk is not responding', how do I fix pls?

    Hi there
    As I've mentioned above, I can't seem to access my emails from my blueyonder account on my iphone. When I first set up my account on the phone, I had no problems at all receiving emails. Then recently, just out of the blue I get the following error message: 'Cannot Get Mail, The Mail Server 'imap4.blueyonder.co.uk' is not responding.  Verfiy that you have entered the correct account info in mail settings.  I definitely have the right settings, I even checked with Virgin but they are not able to assist with my problem. Has anyone else experienced this problem, if so,how did you fix it? If you could explain in simple terms as I'm not tech savvy!
    Many thanks!

    http://www.apple.com/uk/support/iphone/mail/
    work through this

  • Open pdf says "please fill out the following form" when I attempt to apply redactions, I get an error message.  How do I "turn off" the form portion of the document?  I assume that is the problem since I have not had this issue with any of the other files

    I am attempting to redact a large pdf file.  When I open the file, it has a bar across the top with the message "please fill out the following form".  I can mark redactions, but when I attempt to apply them I get a message saying, "In order to proceed Digital Signatures must be removed and the document must be fully authorized.  Do you want to make these changes and continue?"   I click "ok".  Then I get a message saying, "an internal error occurred."  How do I get around this problem?

    You cannot redact a signed document. This is because one of the things signatures guarantee is access to the OLDER document (i.e. there will be an unredacted copy in there).
    In general you cannot remove signatures, but sometimes you can. Look under the Signatures tab (right click on left vertical bar if there isn't one) to see if it is removable.

  • TS3623 when i play a rented the movie it comes out the follow notice   loading  AN ERROR OCCURRED LOADING THIS CONTENT.   TRY AGAIN LATER

    I have rent couple movies which I cannot play,  when i play the movies it come out the follow notice
    loading
    AN ERROR OCCURRED LOADING THIS CONTENT.
    TRY AGAIN LATER
    someone knows why is this happening ? how can I get my money back?

    How did this get resolved?

  • I updated to Mavericks and now I can'burn any DVD's any more. I get the following error message and the disk is ejected: The disc can't be burned because an unexpected error occurred (error code 0x80020000)

    I updated to Mavericks and now I can'burn any DVD's any more. I get the following error message and the disk is ejected: The disc can’t be burned because an unexpected error occurred (error code 0x80020000)
    I did burn the same way in MAC OS X 10.6.8. with no troubles!
    Can anyone please help me out?
    I use for years DVD-R of TDK 4.7GB 16X.

    Hey topo27,
    I would try out the following and see if it helps:
    Intel-based Macs: Resetting the System Management Controller (SMC)
    http://support.apple.com/kb/HT3964
    Welcome to Apple Support Communities!
    Cheers,
    Delgadoh

Maybe you are looking for

  • Software configuration management

    Dear Gurus, One of our customer wants to map Software code management into SAP or atleast link(interface) the configuration management tool with SAP. Have any of you worked in similar situation. Please throw some light on this area. Does SAP PLM have

  • Hash mismatching error while downloading mountain lion

    i got a has mismatching error when downloading mountain lion in app store, any way to fix it?

  • Corrupt cabinet file - QuickTime.cab - error code 2350

    I've attempted to install itunes many times without success. Each time I get a message "cabinet file Quicktime.cab is corrupt and cannot be used. Error code 2350". The installation process then stops and reverses all changes. I've tried troubleshooti

  • Dump when calling system function

    In an abap program the statement call 'system' ... occurs and the program crashes... event if the profile as the object S_C_Funct with value - 16 (execute) - SYSTEM - ZEDI_PROG any help is welcome

  • List of BOM usage types

    Hi , Here is the requirement . 1. Select material,Plant,Usage type from table MAST based on the selection criteria . 2. For a given material and plant combination, with what usage types the material bom is created . <b>Sample output : Material   Plan