Hi, I have a program that writes to and reads from a random access file. That is, it's trying to...
The program loops around (it has a menu that runs in a loop until user chooses to quit), and one of the operations is to read from the file what is in there. The file contains records of an ADT I have developed, but when the method returns objects representing each of these records, instead of outputting the
String, the int and the double that I know is saved in the file for each record, it outputs the name of the data type of each record, along with some garble starting with an @sign. Does this look familiar to anyone?
I want the method to return the contents of one record to the driver program , but instead what is output from the driver program (using the toString() method on the object passed as a parameter) is something along the lines of: basicRecord@130c19b.
Any idea what I may be doing wrong?
Thanks!