Hi,
I wrote a problem in Java - quite a long one.
I succeeded to compile it, but when I ran it there were run time exceptions.
Here are the messages I've got:
java.lang.NullPointerException
at SparseMatrix.addStudent(SparseMatrix.java:29)
at SparseMatrix.main(SparseMatrix.java:196)
java.lang.NullPointerException
at SparseMatrix.addCourse(SparseMatrix.java:37)
at SparseMatrix.main(SparseMatrix.java:203)
I would like you to help me find the cause of the problem...
The program I wrote is as follow:
(I indicated the lines Java didn't get).
I wrote a problem in Java - quite a long one.
I succeeded to compile it, but when I ran it there were run time exceptions.
Here are the messages I've got:
java.lang.NullPointerException
at SparseMatrix.addStudent(SparseMatrix.java:29)
at SparseMatrix.main(SparseMatrix.java:196)
java.lang.NullPointerException
at SparseMatrix.addCourse(SparseMatrix.java:37)
at SparseMatrix.main(SparseMatrix.java:203)
I would like you to help me find the cause of the problem...
The program I wrote is as follow:
(I indicated the lines Java didn't get).
