How do i discover if argStrings is empty

ook...this is my first post here so hello to you all...
i have recently started a computing degree so will be around lots over the next few eyars asking lots and hopefully later helping lots...
anyway...
i have a program that is calling the first value from argStrings (it ignores the rest), but I want a message to pop up if nothing is specified (I am running java from the command prompt). How do I get my program to see if argStrings is empty and put up an error message...
this is what ive got so far but it still doesnt work
if(argStrings[0] == "")
            System.out.println("You need to specify a value");
        else
Run the programcheers in advance

I think you might want this instead:
if(argStrings.length ==0)

Similar Messages

  • How can I discover a color saturation in an image?

    My name is Eduardo, from São Paulo/Brazil. I'd like know how can I discover a color saturation in an image? For example, I open an image in photoshop CS6 and I'd like to know what a color is more saturated for after to do a treatment with color balance. I tried to use a Color Sample Tool in Photoshop, tried to find some articles and techiques on Google, but without success.
    Somebody help me?

    Hi Eduardo,
    Try looking at the Color window.  You can find this by going to Window -> Color.  In the Color window, you can use the eyedropper to select a color and see the color information displayed.  See the screenshot. 
    Hope this helps!

  • ? How do I delete large blocks of empty space with Adobe Acrobat Pro?

    How do I delete large blocks of empty space with Adobe Acrobat Pro?

    How can you delete "empty space"? If you mean that you want to delete lines,
    like in Word, so that the text afterwards will go "up the page", then you're
    out of luck. You should do that in the original file, and then re-create the
    PDF.

  • How do I discover devices on network?

    How do I discover what devices are part of my Airport Extreme network and find out what their IP addresses are?

    I think you misunderstood. Both the MAC address and IP address will be displayed when you use the instructions from Tesserax.
    But, if you don't know what the MAC address is for your computer, for example, you won't know which IP address is associated with the device.
    You will see a list of all of the devices on your network displayed in this format:
    22:ab:44:zz:66:yy 10.0.1.3
    If you don't know which device 22:ab:44:zz:66:yy is, knowing that it has been assigned an IP address of 10.0.1.3 won't tell you very much.

  • How can I get my trash to empty?  Window opens but closes immediately.

    How can I get my trash to empty?  Window opens but closes immediately and there are nearly 9000 items there.

    Hold your click a little longer on the Trash in dock and a popup will appear. Choose Empty Trash.

  • SAP Script - How to check a text element is empty in Script.

    Hello Friends,
                  I like to display a text element when it is not empty, otherwise I like to display some other text.
    I know how to read text element in Script, but 
    How to check a text element is empty in Script
    Thank you for your time.
    Senthil

    Hi Senthil,
    Inside text element, we print the variables.
    Variables actually gets printed in the form.
    if the variable contains value the variable gets printed on script. if not, then variable not gets printed.
    hope this helps.

  • How can I make the popup with empty fileds and create new record?

    I would like to use a popup to create new record.
    I created a af:popup by drag and drop a VO from data control to jsff. then, I created a button and place a af:showPopupBehavior. I was able to popup window by click the button.
    however, the window filled with the information from the 1st record. and when I select a record in table and click popup, the popup is filled with that record.
    How can I make the popup with empty fileds and create new record by saving the popup?
    Thanks

    You can have edit and new buttons, in the PopupFetchEvent identify button source (using popupFetchEvent.getLaunchSourceClientId()) if new button clicked clear the binding using below code.
    If you want to see empty fields, in the popup PopupFetchEvent clear the input component bindings.
    resetBindingValue("#{bindings.<componentid>.inputValue}", null);
        public static void resetBindingValue(String expression, Object newValue) {
            FacesContext ctx = FacesContext.getCurrentInstance();
            Application app = ctx.getApplication();
            ExpressionFactory elFactory = app.getExpressionFactory();
            ELContext elContext = ctx.getELContext();
            ValueExpression valueExp = elFactory.createValueExpression(elContext,expression,Object.class);
            Class bindClass = valueExp.getType(elContext);
            valueExp.setValue(elContext,newValue);
        }

  • How do I force the trash to empty?

    How do I force the trash to empty?

    Hold down the option key while emptying trash.
    More reading on this subject, The X LAB
    http://www.thexlab.com/faqs/trash.html#Anchor-Force-11481

  • HT4113 What is a verification code?  How can I discover where and what it is?

    What is a verification code?  How can I discover where and what it is?

    Read through this: http://support.apple.com/kb/ht5570

  • How to create editable table with one empty row ?

    I'm looking for solution how to create editable table with one empty row using ADF BC. I have seen this solution in application that was created in JHeadstart and it's very well idea to use it insead of creation form.

    hammm, i do it this:
    drop the VO on the page, select Table->ADF Table....
    so, drop the botton create, from de VO->operations->create (the firts), and right botton (mouse) Edit binding....
    in Data collection select the VO, in Select an action select CreateInsert
    luck

  • How can i discover bonjour service with safari on IPAD?

    How can i discover bonjour service with safari on IPAD?
    I can use safari on MAC to discover bonjour service on network, but how can i do that with safari on IPAD?
    Thanks a lot.

    unfortunately, You cannot get bonjour on ipad. But however, you can get a program on the mac (assuming you have a mac) called printopia (http://www.ecamm.com/mac/printopia/) which will turn your printer in to AirPrint when the mac is on. it works very well all the instructions are on the website

  • How do I discover SAPScript name?

    Hi,
    I need to know what FORM is called when I press the command button "Preview" in ME23N.
    How can I discover this?
    Thank you all in advance.
    Charles Oliveria

    Just Run  RSTXDBUG from SE38.
    than once you press print preview from ME23N,one pop-up will prompt you, just skip this window by pressing OK.from Next screen you will be able to see form name which is getting called.

  • How do I discover what OS Java is running on?

    I have a program that needs to load a different native library and system call depending on the OS that is running.
    How would I discover what OS that the JRE is currently running on?

    System.getProperty("os.name");vinod.

  • How do I discover what font Firefox is actually using?

    How do I discover what font Firefox is actually using?
    Inspect Element does not tell me what font is substituted.

    There is a panel for that in the Inspector. On the right side, where you normally see CSS rules, look for the Fonts tab. It should show the actual font being used by the element selected in the HTML "tree" on the left side.
    Oops, you posted using Firefox 24. It might not have been in that version yet. Are you waiting to make the leap to Firefox 31 ESR because of... ??
    Note that you are a little behind on updates: 24.8.1ESR was released on Sept. 24.

  • How do I change trash from secure empty to just empty?

    How do I change trash from secure empty to just empty?

    Under Finder Preferences...
    The "Advanced" tab...
    Good luck,
    Clinton

Maybe you are looking for

  • Shipping cost not getting calculated in CRM IC webclient for a region

    HI all, I have an issue where when we create an order, the shipping cost is not getting calculated automatically.. and so we are having to manually enter the shipping cost..this is happening only for Apac regions. for all other regions it seems to be

  • How do I make mail readable, text barely readable on screen when set to 12 point text.

    Is there a way to increase the size of the displayed mail, as you are creating it? I have mine set to 12 point text, but it is still difficult to read. The e-mail when received is fine, it's the creating that's "tiny" Thanks Mike

  • HP Photosmart Studio

    How do you delete pictures from HP Photosmart Studio?  I am working with old system Mac OS X 10.4.11 and old camera Photosmart M547.  Thx!

  • (SOLVED) tearing and slow down?

    I can't quite explain what is going on-- but after some of the newer updates (chromium and flash) I seem to be getting tearing or lag when moving the mouse quickly in the browser. Also, when I mouse scroll up and down youtube pages that display a vid

  • Bytes at serial port are unreadable?

    I am trying to communicate to an Omega HH42 Digital Thermometer. I receive Bytes at the port but they do not show up in the display. I have tried the codes disply, Hex etc..... Has anyone seen this before? I am not new to serial communication but thi