Search:

Type: Posts; User: Norm

Search: Search took 0.14 seconds.

  1. Replies
    10
    Views
    1,212

    [SOLVED] Re: Filter-Standart Input

    Why did you put those two lines of code in your program?
    If you don't want to look at the args from the commandline, don't use any of the elements of the String array that is passed to the main()...
  2. Replies
    10
    Views
    1,212

    [SOLVED] Re: Filter-Standart Input

    Yes. Instead of getting any user input from args passed in from the command line, use methods in a class to read the user's input from the console.
    I assume that: StdIn.readInt(); is a method of...
  3. Replies
    10
    Views
    1,212

    [SOLVED] Re: Filter-Standart Input

    Because the code uses the String array passed to the main() method. The args from the commandline are placed in that String array. If there are no args, the array will be empty.

    On Windows: To...
  4. Replies
    10
    Views
    1,212

    [SOLVED] Re: Filter-Standart Input

    Please copy the exact text of the error message and paste it here. Your made up verison is leaving out important parts of the message.

    --- Update ---

    Be sure to include the commandline that you...
  5. Replies
    10
    Views
    1,212

    [SOLVED] Re: Filter-Standart Input

    You get that error when trying to access the first element in an empty array.

    To put some elements in the args array, you need to put some arguments to on the commandline when the class is called:...
Results 1 to 5 of 5