Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    12
    Views
    1,913

    Re: Interger.parseInt Question

    Sorry, I have no idea how to use your IDE.
    Once the program is finished being developed, move it out of the IDE to execute it.
  2. Replies
    12
    Views
    1,913

    Re: Interger.parseInt Question

    That is the command line that should be used when the program is executed.
    How do you execute the program?
    Here's a sample of the console when I execute the java command:
    ...
  3. Replies
    12
    Views
    1,913

    Re: Interger.parseInt Question

    The user needs to enter:
    java Power 2
    to execute the program without any errors.

    If you want the program to catch errors
    Pseudo code:
    if length of the array passed to main() is < 1
    then print...
  4. Replies
    12
    Views
    1,913

    Re: Interger.parseInt Question

    The error message says that the array: args is empty (it does not have an element at index 0)
    The code should test the length of the args array and make sure it has some content before trying to get...
  5. Replies
    12
    Views
    1,913

    Re: Interger.parseInt Question

    Please copy the full text of the error message and paste it here.
Results 1 to 5 of 5