Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    The code has lots of bugs in it. I found them by adding lots of println statements that displayed the values of many of the program's variables as the code executed.
    I changed:

    final int...
  2. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    Some more suggestions for testing:
    Have the output files be small enough that it can easily be visually verified. 32K is too big
    Have a max of 30 lines.
    Add a toString() method to the Student...
  3. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    There should only be one definition for the Scanner object. For easy testing it should contain all the responses that will be read in the program when the next methods are called.
    Can you merge all...
  4. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    For easier testing, define the Scanner object with the needed input for testing instead of requiring the tester to type in data. For example:

    Scanner input = new Scanner("the input...
  5. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    I found my error. A previous question had a class named: Files that was being picked up. Renamed it out of the way and now both classes you posted compile without errors.

    How do I test the...
  6. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    I just downloaded the java 1.7 SDK two days ago.
  7. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    I can't compile the code for testing because of the errors I posted. I am using the javac command that comes with the SDK for java 1.7 to compile the code.

    I have no idea what compiler JGrasp...
  8. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    Problem fixed, see below.
  9. Replies
    17
    Views
    1,708

    Re: Trying to out.println of random selected record

    Could you post a copy of the input file for testing?
Results 1 to 9 of 9