What does the question mark and the semi-colon do in the following code

public void set(int index, Object value) {
    int j;          // loop index
    int newLength;  // new size of array, if required
    if ( index < 0 )
      throw new ArrayIndexOutOfBoundsException(index);
    else {
      if ( index >= objs.length ) {
        resize(index) ;
      } // end if
      if ( index >= size ) {
        size = index + 1;
      objs[index] = ( value == null ? NULL_OBJ : value ) ;   } // end else
  } // end set

Read about the ternary operator at http://java.sun.com/docs/books/tutorial/java/nutsandbolts/operators.html

Similar Messages

  • What does a question mark and i file mean on my macbook pro

    what does a question mark and i file mean on my macbook pro when i turn it on?

    To be more specific, the computer is not finding a valid system when it starts up. This may result from the hard drive's physical mechanism failing, or the system on the drive being corrupted in some way.
    Repairing permissions is not likely to fix this issue. Instead I would suggest booting from the system install DVD, running Disk Utility, selecting your hard drive's partition and select *Repair Disk*.
    Note: if the hard drive does not show up in Disk Utility at all, it is dead and will need to be replaced. Contact Apple (800-275-2273 in the USA) and have them set up warranty service, or carry the MacBook in to an Apple retail store to have it fixed. Be sure to [make an appointment|http://www.apple.com/retail] first you you may wait a long time to speak to a Mac Genius.
    If Repair Disk finds any problems and is able to correct them, you may be able to restart and everything be okay. If it is unable to correct the problems, you will need to erase and restore your hard drive.
    If Repair Disk does not find any problems, I would suggest an Archive and Install as described in [this article|http://support.apple.com/kb/HT1710].
    Best of luck.

  • My Macbook doesn't turn on, it just show a white screen and after a while a question mark blink, I cannot click the question mark, and cannot do anything. Any suggestions?

    Hi, my Macbook doesn't turn on, it just show a white screen and after a while a big question mark blinks but nothing else, cannot click the question mark, cannot do anything.Also it makes a funny noise.  Any suggestions?

    Suppose it's a HDD crash. Boot from Install DVD which came with your MacBook(Press C during startup) and open DiskUtility to repair your HDD if it's able to mount.

  • HT1310 I have a macbook pro about 4 years old.  I can't get it to open past the flashing question mark folder.  However, I just tried to hold down the option key and the question mark disappeared.  Still, nothing...the light is on the screen but nothing e

    I have a 4 year old macbook pro and when I turn it on, the screen and fan come on but there is a flashing question mark folder that appears.  Nothing beyond that point....help?

    There is no installed OS or you have a dead hard drive. Start by booting from the original installer disc that came with the computer or an installer disc that has a later version than the original such as a Snow Leopard DVD. Then you can do this:
    Reinstall OS X without erasing the drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.

  • How can I Hide/ Disable the Question mark and Exit button in the Top right corner of Link Bar of Excel Documents in SharePoint 2013?

    Hi,
    How can we  Hide / Disable the Help(?) and Close(x) buttons which are located in the right corner of the Top Link Bar in the Sharepoint Document Library pages as well as Excel Web Access?
    Our requirement is : When we try to view the Excel Services Report from another web site, Help(?) and Close(x) icons are also appearing in the Excel Web Access Web Part, but we don't want to display them in our site.
    Please let us know the solution for this case.
    Thanks in advance.
    Regards,
    Sanjana

    Hi,
    In the xlviewer.aspx, we can find the two buttons like this:
    To hide them, you need to add the CSS into the xlviewer.aspx which stays in:
    C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\TEMPLATE\LAYOUTS
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Why the question mark on all open windows while in the Finder?

    I am running OS X version 10.10 on an iMac and a MBP with Retina display. While in the finder every open window has a large question mark displayed. Why is this? What might be the he problem? What can be done to correct the issue?
    Thanks in advance!

    Where is it displayed? Post an image here:
    To post screen shot do this:
    Press COMMAND-SHIFT-4 which will change the cursor to crosshairs.
    Hold down the mouse button and use the crosshairs to select the part of the screen you wish to capture.
    Release the button and the image will be saved to your Desktop.
    Click on the Camera icon in the toolbar of the forum message editor.
    Drag the image onto the Choose File button and click on the Insert button.
    No guarantee anyone will see it given how the forum has been, but if it is then a picture is worth a thousand words.

  • My Mac Pro flashes the question mark and wont boot from hard drive, flash, or Cd... Please help!

    My Computer froze so I shut it down... When I tryed to boot up again it wouldn't power up.  After a few tweeks I got it to power up but now it wont boot from the hard drive, flash drive or a cd.  It want to start, then, after a few seconds it stops.  Not sher what to do.  Can anyone help?

    Have you tried Safe Boot?
    You also might reset PRAM and reset SMC.
    Have you tried booting with the Recovery System? See its possibilities here.
    From there you can make repairs to your primary startup partition.
    Do you have a backup? If not, do you have an external drive large enough to back up your primary drive? It would be good to have one in case your drive needs repair or replacement.

  • Hi. I am reinstalling Macbook Pro OS X from the "question mark icon". During process, there is a question "select the disk where to install Mac OS X" but there is no option/selection in the box. I really need your help guys. I need it badly. :'(

    Hi. I am reinstalling Macbook Pro OS X from the "question mark icon". During process, there is a question "select the disk where to install Mac OS X" but there is no option/selection in the box. I really need your help guys. I need it badly. :'(

    If you got the question mark and you do not see any partition to install OS X to, it is not good.
    Close the OS X installer by pressing the red button at the top left corner of the Install OS X window, and open Disk Utility. Then, look at the left sidebar and tell me if you see your hard drive. You should see something like this:
    Do not worry if you do not see Macintosh HD or if the option with an arrow shows a different name. This is normal.
    If you see it, choose it, go to the Erase tab and erase the drive. Finally, close Disk Utility and reinstall OS X. You will lose everything if you do not have a backup.
    If you do not see the drive, it is damaged and it has to be replaced. You can replace the hard drive of a MacBook Pro without voiding the warranty, and any 2'5" SATA hard drive is valid. If you are not an experienced user or you do not want to go inside the MacBook, take it to an Apple Store or reseller.

  • Had to reinstall lion because of my error, but now a lot of apps. are showing up on my dock as question marks and will not open.

    Had to reinstall lion because of my error, but now a lot of apps. are showing up on my dock as question marks and will not open.

    Ive gotten the question mark icon thing, and I just took them off the dock and redragged them onto the dock from the Applications folder again and they worked fine.  Mine were a couple of game type programs nothing major yet.  Just wanted to throw that out there though since I had that happen with a few dock icons.

  • My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean?  And how can I get my computer back up and running normal?

    My MacBookPro has a white screen with a grey file folder in the center of the screen with a white question mark blinking in it. What does this mean?  And how can I get my computer back up and running normal?

    Start up in Safe Mode.
    http://support.apple.com/kb/PH14204?viewlocale=en_US
    Repair Disk.
    http://support.apple.com/kb/PH5836
    Reset PRAM.
       http://support.apple.com/kb/PH14222

  • What does the question mark in upper left hand corner mean

    what does the question mark in upper left hand corner mean

    Do you mean on a thumbnail in the organizer?That means that organizer has lost track of the original file. Usually that happens when you've done something with the photo outside of organizer, like moved it or deleted the original. If you want organizer to be able to keep track of your photos, you need to do all moving and deleting from within the organizer, not in Windows Explorer or the Mac Finder.

  • What does mean that a question mark continually shows up in place of the Document Folder on the desktop?

    What does mean that a question mark continually shows up in place of the Document Folder on the desktop?

    Welcome to Apple Support Communities
    It means that this folder couldn't be found. Drag it off the Dock, and then, open a Finder window, go to the folder that contains it and drag it to the Dock, so it will show up

  • I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes

    I have a problem with iphoto (have a mac book pro): the icon in the dock appears with a question mark, and the application is gone!!! Can someone tell what's going on? Yesterday I had the same problem with itunes: I downloaded the last version (it's free), but I cannot do the same with iphoto, and more important: I need to know what is happening!!! Please help me!

    Applications should not disappear all by themselves.
    If they are then that coud indicate serious problems with your hard drive.
    Backup everything up as quickly as possible.
    Using Disk Utility verify your system disk.
    Allan

  • Anybody can help me? I'm trying to start my computer and it shows this question mark. Then i restart it holding the option key and it shows this padlock with a password field. What should password should i put?

    Anybody can help me? I'm trying to start my computer and it shows this question mark. Then i restart it holding the option key and it shows a padlock with a password field. What password should i put? I would appreciate any help

    Contact Apple, or if you bought the computer secondhand, the previous owner.
    (118258)

  • I updated to Yosemite and now I can't open my YNAB finance app. There is a question mark in the Dock where the App should be and when I hover over the question mark it does say YNAB but I can't open it.

    I updated to Yosemite and now I can't open my YNAB finance app. There is a question mark in the Dock where the App should be and when I hover over the question mark it does say YNAB but I can't open it. When I double click on the question mark nothing happens. Has the link to YNAB been broken with the update? Has this happened to anyone else?

    Check the Application folder.
    If it is not there, contact YNAB Finance for a OS X Yosemite compatible version of the application.
    Best.

Maybe you are looking for

  • How do I use Back to My Mac with a new Time Capsule if I don't have a MobileMe account?

    I just got a new time capsule and I'm trying to set it up so that I can remotely access the files when I'm at work/on the go etc. Now I have an iCloud account, but I don't have a MobileMe account. I do have an @me.com address because I enabled Mail t

  • How to back up contacts to Mac address book?

    Hi, am trying to back up contacts from my 8900 to my Mac- would like them to go into the address book, but the desktop software doesn't give m that option- instead, they are going into a folder which I then cannot open as it says it contains corrupt

  • Specification Information system output varaint error

    Hi Experts, When I am trying to out put data using an output varaint in to Excel sheet system is not pulling all the data. I have around 22 value assignments in the specification. For all these 22 value assigments there are around 4-5 phrases added (

  • Register For Accenture Oracle Summit 2006 Hyderabad

    The 2006 Accenture Shaping the Future Forum Learning sessions for technology professionals on Oracle applications Saturday, March 18, 2006 9.00 am to 3.30 pm Taj Banjara, Hyderabad In research efforts spanning several years, Accenture has sought to i

  • Internationalize a chart legend

    Hi, I'm using CR XI from C++. I'm creating reports that must be displayed in a number of languages. To that end, I pass in locale specific strings as parameters such as report title, column headers and so on. I want to have my chart legends display m