Search:

Type: Posts; User: soradogoof

Search: Search took 0.06 seconds.

  1. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    now how do i denote this post as solved?
  2. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Anddd solved! Thank you very much!
  3. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    i took away the definition inside the constructor and that got it going. Now I'm getting and exception found error
    Here is my new output:

    ----jGRASP exec: java MatrixFileTester

    reading from...
  4. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    It is defined in the beginning of the program and inside the constructor. That's all.
  5. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Idk what happened to abunch of the posts but numRows is not altered after it gets set to 9 in the constructor. Accessed alot, but not altered. ?????
  6. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Never again altered*
  7. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    It is declared at the beginning of the class, set to 0 at the beginning of the constructor, and then set to 9 after the constructor reads the input file. After that, it is accessed multiple times but...
  8. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Ah. There's the problem. In the method numRows is equal to 0. But it gets set to 9 in the constructor. Why does it reset?
  9. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    I still can't find the problem. The only variable I missed that that method used was the array matrix[][] . Which I have added a print statement for and I have the same issue. It is equal to 0 before...
  10. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Here's my updated matrix class: (i only updated the detectErrors method, i will take correcting the methods one method at a time for easier thought-process. although hopefully whatever is the issue...
  11. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Not working at all*
  12. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    I have added println statements to the detectErrors method and discovered hat for some reason, the for loop is not being entered. I am posting this reply with my phone so as soon as I get home I will...
  13. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Well after I put it in the java code format the smileys don't appear anyway so...
  14. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Oh. an open parenthese makes the faces. That makes sense. Well. Not much I can do about that. and I'll get the highlighting right real quick.
    And I called all the methods in the driver program...
  15. Replies
    26
    Views
    3,598

    Re: Problem with Two-Dimensional Array Program

    Um. I'm not sure why in the correction private methods it changed all the equal signs to broken heart faces but yeah...those are equal signs.
  16. Replies
    26
    Views
    3,598

    Problem with Two-Dimensional Array Program

    This is a homework assignment for my csci 1302 class. The assignment is for the program to read a matrix of numbers from an input file (provided by the user), count up the number of rows and columns...
Results 1 to 16 of 16