More error messages than I care to type

Im going over the Java tutorials and I came to this bit of code and when I tried to compile it I got back 100 error messages, most said:
classArrayDemo.java:9: illegal character: \0
int[ ] anArray;
d e c l a r e s a n a r r a y o f i n t e g e r s
says that about 50 times then the java:9 changes to java:13 for about 50
So what I did, and don't forget Im only about 3 days into programming, was to complile it I typed: javac classArrayDemo then the errors came.
Question: should this program work like the "HelloWorldApp" did?

Sorry, guess it would have helped if I showed you what I was coding. It was late.
class ArrayDemo {
public static void main(String[] args) {
int[] anArray; // declares an array of integers
anArray = new int[10]; // allocates memory for 10 integers
anArray[0] = 100; // initialize first element
anArray[1] = 200; // initialize second element
anArray[2] = 300; // etc.
anArray[3] = 400;
anArray[4] = 500;
anArray[5] = 600;
anArray[6] = 700;
anArray[7] = 800;
anArray[8] = 900;
anArray[9] = 1000;
System.out.println("Element at index 0: " + anArray[0]);
System.out.println("Element at index 1: " + anArray[1]);
System.out.println("Element at index 2: " + anArray[2]);
System.out.println("Element at index 3: " + anArray[3]);
System.out.println("Element at index 4: " + anArray[4]);
System.out.println("Element at index 5: " + anArray[5]);
System.out.println("Element at index 6: " + anArray[6]);
System.out.println("Element at index 7: " + anArray[7]);
System.out.println("Element at index 8: " + anArray[8]);
System.out.println("Element at index 9: " + anArray[9]);

Similar Messages

  • N79 (Error message :Unable to open .File type not ...

    Dear nokia service manager,,
    Iam sivakumar using the nokia N79 handset.Iam getting the message like this (Error message :Unable to open .File type not supported)when i was trying to open the video file shooted by some other camera.I have tried changing the format of the file..but no use ..i dont get ant suitable software converter in the internet.So kindly look into this matter as i need this very uregently...
    hope its a mandatory feature as laptop and mobile interface are simple task nowadays in mobile...
    pls reply me..its very urgent...thanku..

    You could try Videora (http://www.videora.com/) - the downside here is that they have specific versions for specific phones, and sometimes it will makea file that plays perfectly in the desired phone but can't be shared to other models. The don't show a version for the N79, but try the N96 one because the N96 is the most similar OS to yours that they offer.

  • Cant take pics any more, error message sez "CANNOT TAKE PHOTO"

    cant take pics any more, error message sez "CANNOT TAKE PHOTO there is not enogh available storage to take photo. You can manage your storage in Settings." but then I go there and cant do anyhting...?
    I believe I have backed up all photos to my computor and I even just now bought more icloud storage for $20.00 a year and still nothing....?
    I cant find a way to delete camera roll....?

    Guess what? The folks responding to you here are all just users like you, we don't work for Apple, so, you know, your pain is of little interest.
    This has been the cause of your problems:
    I checked in Iphoto preferences and the box to automatically import photos to Iphoto was unchecked.
    What that means is you have connected your camera and iPhoto has imported references to your photos - links, in other words. It did not copy your files into the Library.
    Then you took away the camera.
    Now iPhoto is looking for the pictures.
    You'll need to import the images again - but if you do you'll have masses of duplicates. So, trash the existing library, create a new one and start over.
    For more on iPhoto and file management see this User Tip:
    https://discussions.apple.com/docs/DOC-6361

  • How do i make an error message come up if i type a letter not a number

    Hi i have a problem with a program that when i type a letter where a number should be in JOptionPane the program crashes as it should. I would like it to return an error message i know how to return an error message if an incorrect number is returned if (sTimeHours >24 || eTimeHours > 24)
    My question is what do you type in for an incorrect letter.

    User entry Is what i think tou mean here is some of the code
    while(true){
    String one = JOptionPane.showInputDialog(null,"Please enter your start hours and minutes in 24 hr time\n with a - between the hours & minutes" );
         String two = JOptionPane.showInputDialog(null,"Please enter your finnish hours and minutes in 24 hr time\n with a - between the hours & minutes");
    String[] startTime = one.split( "-" ), endTime = two.split( "-" );
    int sTimeHours = Integer.parseInt( startTime[0] ), sTimeMins = Integer.parseInt( startTime[1] );
    int eTimeHours = Integer.parseInt( endTime[0] ), eTimeMins = Integer.parseInt( endTime[1] );
    if ( sTimeHours > 24 || eTimeHours > 24 || sTimeMins > 60 || eTimeMins > 60 ) {
    if (sTimeHours > 24 || eTimeHours > 24) {
    JOptionPane.showMessageDialog(null," HOURS must be less than 24 Hr ", "ERROR!" , JOptionPane.ERROR_MESSAGE);
    if (sTimeMins > 60 || eTimeMins > 60) {
    JOptionPane.showMessageDialog(null," MINUTES must be less than 60 Sec ", "ERROR!" , JOptionPane.ERROR_MESSAGE);
    If some one enters a letter instead of a number how do i give them an error message instead of the program crashing. Also on a further note i have a return to the start statement on this code which works for the minutes but the hours just add up and the program ends any ideas.
    Once again if the code dose not present correctly i am sorry i am trying to work out how the code button works

  • I keep getting the error message on my MP510, the type of printhead is incorrect install the correct

      Recently my printer stopped printing black, although it would print the other colors. When I tried to print a print pattern, it would not print the checkered pattern it used to print to check the alignment. I tried cleaning, to no avail. Then I got the message: the type of printhead is incorrect, install the correct printhead on my control panel. Now when I turn on the unit, I can't do any maintenance or anything, it just shows the same error message as noted. I talked to a Canon representative, and he said to clean the printhead, I did. That did not help. My questions are, is the printhead bad. Second, it would seem I can replace the printhead. Just what is the likelyhood the printhead is the probnlem, or is this problem a problem that can only be curred by a service tech? Canon informs me this printer is not serviceable anylonger? So, I guess I'm on my own? They offer a deal on another printer at a reduced price. Frankly, I don't think my printer needs to be replaced, just fixed. If all that it requires is a printhead, I'm sure I can do the replacement. Just what are the odds replacing the printhead will solve the problem? I'm quite certain this error message has occured before on this type of printer, and other users have probably figured out the solution? Can someone help? Thank you.
    Rick

    Hi sciencemagic,
    The major cause for this type of error/issue is the printhead.  In most situations, replacing the printhead will resolve the problem.  However, the error may appear because of another internal malfunction with the printer.
    Another thing to consider is the cost of a replacement printhead, which may exceed the cost of purchasing a newer printer.  With the newer printer you also get access to newer printing features and technology including better image quality.
    For these reasons, I recommend exploring the replacement option, but we are happy to help with any available service options for your PIXMA MP510.  Contact us to discuss your options further.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How do I view downloaded content when the error message, not a supported file type or because the file has been damaged, shows up?

    I trying to download a book as a pdf to view through my adobe reader. But every time I do I keep getting the same error message saying that the file is not a supported file type or because the file has been damaged it can't be opened or viewed. What do I do and how do I get it to work. Because as of now I only have one option of downloading the book and I've tried to download the app notable pdf to see it that worked but it didn't either. As of right now I'm using google chrome but I also tried using Safari but it's still not working. I have a Mac with a Mac OS X updated system. I need an answer ASAP. Can anyone help me?

    I have the same issue.  Almost none of the PDFs I download from Safari browser can be opened. Same message about the file being damaged or not really a true PDF.  Neither of these are the issue here. Size of file is not an issue. I have Acrobat Reader XI so I believe that's pretty up to date.  If I open with Text Editor the file is blank.  any ideas?

  • Getting the error message The content of element type "navigation-case" mus

    I am getting this error message when I start the Jboss server ,,
    What could be reason , I have checked in and out , Everything is correct it seems,.
    The content of element type "navigation-case" must match "(description*,display-name*,icon*,from-action?,from-outcome?,to-view-id,redirect?)"
    Please respond
    Thanks
    Suresh

    That's an XML validation error for faces-config.xml. What is the content of that file?

  • Error Message for new production order type

    I have created a new production order type and gone through all the configuration requirements that I'm aware of.  In testing this new order type, I get an error message in transacion CO02 when selecting the printer icon. The error is as follows:
    No reference document type defined for order type ZRWK
    Message no. CO179
    ZRWK being the new order type.
    I've searched through many posts and found nothing relating to this message.  Hopefully someone has encounted this before.
    I'm sure I've missed something, but can't pinpoint what it is.
    Help is greatly appreciated.

    Bob, did you check your print parameters?..Maybe you don't have your sap forms..You can check it with Tx. COPI
    The path is Print - Print Settings - Configuration Menu.
    Diego

  • Error Message when using car charger

    Hi
    I just recently purchased my iPhone 4. When I am trying to charge it using my Apple car charger and cable, I get that error message so many others are getting when trying to charge from their computer. I use an USB port from back of computer, so I don't have a problem that way.
    My problem is with the car charger and cable. Error: "The device is incompatible for charging".....or similar wording. This is terrible because the battery is used up so fast, I need to keep it charging while driving.  Even if I buy the real expensive charger for $25, there are complaints about the same error.
    Apple has got to be aware of this problem. Since my iPhone 4 is new, it doesn't appear to be any dust at the connection. For the money I paid, I am feeling really bad about this.
    Thanks in advance.
    Cissy Brazil

    Hi Deggie. My mistake. I got the car charger from Amazon which is supposed to work with iPhone and my iPod Touch. The cable that came with it does fit the iphone. However, since I have the cable that came new with my iPhone 4, I will try switching the cable and see what happens.
    At the Apple store, a car charger is available for purchases of $25, but like I mentioned, when reading the reviews, most people gave a one star because of that error message that users are getting.
    I'll try my cable that came with my iPhone and see if it works, then get back here
    **forgot to mention that I've had the charger for about a month, but had used it until a few days ago **
    thank you!
    Cissy

  • No more error messages

    Today Director suddenly stopped giving me error messages on
    runtime.
    When I run a movie and Director encounters an error, it just
    stops executing without displaying any message. I never experienced
    this in 7 years use of Director (I am still using 8.5).
    I did a computer restart, but it doesn't help.
    When I execute a line of code in the Message windows, error
    reporting still functions.
    an example:
    the line "put 0/0" executed in the message window generates
    the message: "script error: cannot divide by zero". The same line
    contained in a global handler just makes director stop executing
    code, without an error message.
    Did I unforeseen change any setting that I don't know of? Can
    somebody help me out of this problem?
    Jan

    thank you for your replies,
    Today I tried again, and everything was back normal again. I
    was just about to do a reinstall, but it became unnecesary.
    I am still curious about what was going on, but by now I am
    satisfied with the fact that the problem is gone.
    Jan

  • Getting an error message: Exc in EV Handl:Type error:This oRoot.enable is not a function on FF6 start.

    I'm getting the above message when I start FF6. Didn't have it when I first downloaded. I was renewing my First Mailwasher subscription when I first encountered it. I deleted FF6 and reloaded but this did not correct the problem. FF6 works fine after the error message. On sites with aggressive pop-ups I get the error message and when I go ok to clear the message the pop-up loads minimized. All other computer functions appear ok.

    Troubleshooting plugins
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins
    Check and tell if its working.

  • How can i receive more error warnings than just the first error warning?

    is there any way to receive more than just the first error. i want to report all errors in my application...

    Just use the simple error dialog at the output of each VI that can return an error. After that pass a "no error" cluster to all following VI's and re-use the error dialog as before.
    Do you really want all those errors?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • No error message when incorrect account assignment type K in PO

    Hello,
    When creating a PO with any raw materials, I can either enter K in the account assignment type, either let the field blank.
    If there is no assignment the system will use key EIN to make the posting, if there is an assignment K (compulsory for services for instance), the system will use key VBR.
    In this case (raw material), I do not want the users to be able to save their PO if the account assignment has been entered in the item (only blank account assignment type for materials dealt with in stock and value).
    Does anyone have a solution?
    Best regards,
    Ronan

    Hi,
    This means ERS is active in your system.
    What this means is that when you do a GRN, an ERS flag is activated in the PO header.  The ERS is then settled using the PO data in SRM.
    If you have not settled this (at least this is what is indicated from the message), then uncheck this flag in the PO header and then try and archive.
    Cheers.

  • BAPI_GOODSMVT_CREATE error messages,  when I use Movement Type '541'

    Hello,
    I am using "BAPI_GOODSMVT_CREATE".It was working fine when i was creating a GR against Purchase Order.
    Now i am trying to create GR against subcontracting purchase order
    but it is giving Error "No goods receipt possible for purchase order"
    The following is my soucre code:
      GT_CODE-GM_CODE = '04'.
      GT_HEADER-PSTNG_DATE = SY-DATUM.          
      GT_HEADER-DOC_DATE   = SY-DATUM.         
      GT_ITEM-PLANT      = 'p001'.     
      GT_ITEM-STGE_LOC   = 'w03'.            
      GT_ITEM-MOVE_TYPE  = '541'.           
      GT_ITEM-STCK_TYPE  = SPACE.             
      GT_ITEM-ENTRY_QNT  = '10'.      
      GT_ITEM-PO_NUMBER  = '4500000188'.         
      GT_ITEM-PO_ITEM    = '00010'.               
      GT_ITEM-MVT_IND    = 'B'.                      
       APPEND GT_ITEM.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
        EXPORTING
          GOODSMVT_HEADER       = GT_HEADER
          GOODSMVT_CODE         = GT_CODE
         IMPORTING
            GOODSMVT_HEADRET    = GT_HEAD_RET        
          TABLES
          GOODSMVT_ITEM         = GT_ITEM
        GOODSMVT_SERIALNUMBER = GT_SNO
          RETURN                = GT_RETURN.
      COMMIT WORK.
    Pls help me out...
    thanks
    Regards,
    Samuel Liu

    Hi jxlmh,
    1. No goods receipt possible for purchase order"
    This is not a program error.
    2. Its a functional message / error.
    3. Please contact the functional guy.
    4. Also try to manually enter the same data 
       via migo transaction.
    (at this point, also, it will give the same error)
    regards,
    amit m.

  • Error message Old format or invalid type library

    Hello,
    We have updated Webtools to SP1 PL2. We are getting this error.
    Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbobsCOM.SBObob'.
    This operation failed because the QueryInterface call on the COM component for the interface with
    IID '{268D6CC3-E244-4AD7-B009-16C8ED7F710A}' failed due to the following error:
    Old format or invalid type library. (Exception from HRESULT: 0x80028019 (TYPE_E_UNSUPFORMAT)).
       at NetPoint.SynchSBO.SBOObjects.SBOPriceBrowser..ctor(Company company, SecurityTicket st)
       at NetPoint.SynchSBO.SBOObjects.SBOItem.SBOToNetPoint(SBOQueueObject qData)
       at NetPoint.SynchSBO.SynchObjectBase.Synch()
    Any ideas what this means and how to solve this?
    Thanks in advance.
    Best regards,
    Tim

    Sounds like a problem with the DI API?

Maybe you are looking for

  • Quality Results entry

    Hi , I am working on 11.5.10.2 Quality Module. We have Quality results entry form is available in Quality Module and at the same time we can enter quality results during PO receipt or WO completion. If we enter quality results in quality module for a

  • 'BAPI_GOODSMVT_CREATE' - problem in stock update

    Hi, I am using 'BAPI_GOODSMVT_CREATE' for 561 movement type. it is getting posted properly in MB1C. But i am not able to see it in MMBE - stocl overview. i am using 'BAPI_TRANSACTION_COMMIT' also. Can anyone tell me how to solve this. Vikki.

  • Set icon_name for push_button in Block - current row

    Hi all, i've got a little problem: I builded an Block. The Block contains 10 rows with data-columns and a push_button (the push_button is part of the block so there are 10 buttons - each for one row). Now i want to change the icon of the push_button

  • Delaying the erase with the Write On behavior

    Hey everyone. Does anyone know how to delay the "erase" with the write on behavior. When I apply the write on effect to my outline the behavior and set it to draw and erase. Motion draws the shape and as soon as it's drawn motion starts the erase the

  • Adobe FLME Error Message "Please check if video devices are connected properly and are not used by any other application."

    Hello, I'm trying to use my MAC Book Pro with Adobe FMLE. Once I select either my internal or external camera and microphone, in the live encoder I get this error message. "Please check if video devices are connected properly and are not used by any