Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    15
    Views
    2,685

    Re: While loop not iterating correctly

    Look at the definition for the getStudentRecord method. Does it take any args? What data type?

    You need to put a arg in the ().


    If you get errors, please copy and paste the FULL text of the...
  2. Replies
    15
    Views
    2,685

    Re: While loop not iterating correctly

    The compiler can NOT find in scope definitions for the variables listed in the error messages.
    Do you understand what in scope means? Code within a pair of {} is in the same scope. If a variable is...
  3. Replies
    15
    Views
    2,685

    Re: While loop not iterating correctly

    Please copy and paste here the full text of any error messages you get.
  4. Replies
    15
    Views
    2,685

    Re: While loop not iterating correctly

    You need to pass a reference to the file reader class from the method that opens the file to the method that is to read the file. Add a parameter to the student method to pass the inputStream.
    ...
  5. Replies
    15
    Views
    2,685

    Re: While loop not iterating correctly

    Your pseudo code shows that the StudentRecords method is opening the file.
    Can you post your code? You comments and your pseudo code don't agree.
  6. Replies
    15
    Views
    2,685

    Re: While loop not iterating correctly

    I believe that is what the compiler puts in doubles when they are created. A double can only hold numberic values, unlike object reference values which can either be null or have the address of an...
  7. Replies
    15
    Views
    2,685

    Re: While loop not iterating correctly

    Could you show the code for this. Creating a new array should replace the old one:
    marks = new double[5];

    What does "filled" mean?
Results 1 to 7 of 7