Search:

Type: Posts; User: SeanyC

Search: Search took 0.26 seconds.

  1. Replies
    13
    Views
    1,545

    Re: Command Line and two arguments

    On it thanks

    --- Update ---



    Hey can you you help me out with this one below, its the only one im stuck on and its doing my head in?


    // set up beverageJComboBox
  2. Replies
    13
    Views
    1,545

    Re: Command Line and two arguments

    CAn you help me out with it? the first one i have my combobox called:


    beverageJComboBox = new javax.swing.JComboBox();


    Next one is:


    private void beverageJComboBoxItemStateChanged(...
  3. Replies
    13
    Views
    1,545

    Re: Command Line and two arguments

    Okay i got the list of what is wrong, and i get these warnings below

    RestaurantBillCalculator.java:308: warning: [unchecked] unchecked call to addIte
    m(E) as a member of the raw type JComboBox
    ...
  4. Replies
    13
    Views
    1,545

    Re: Command Line and two arguments

    There is no errors, this is what i don't understand! the program runs fine in Netbeans but when i run it at the command line, it asks to recompile with -Xlint
  5. Replies
    13
    Views
    1,545

    Re: Command Line and two arguments

    So how do i write that in the command line? the way you have it exactly or what?

    --- Update ---

    If this is just a warning, why wont my code compile in the command line? i have 7 warnings but no...
  6. Replies
    13
    Views
    1,545

    Re: Command Line and two arguments

    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation. All rights reserved.

    C:\Users\Sean\Documents\NetBeansProjects\RestaurantBillCalculator\src>javac Rest...
  7. Replies
    13
    Views
    1,545

    Command Line and two arguments

    Simply put, i have to run my program from the command line

    My code is:



    public static void main( String[] args )
    {

    // check command-line arguments
Results 1 to 7 of 9