for some reason when I run my app, instead of getting the name of the lecture, I get a bunch of random characters that show up. I'm not sure why though. Thanks in advance!
public Lecture(String lecturename) {
    this.lecturename = lecturename;
    listofwork = new ArrayList<Work>();
}
public String toString(Lecture lecture) {
    return lecture.lecturename;
    }
    /////////// IN ANOTHER ACTIVITY   /////////////////////
    Lecture test = new Lecture("TEST");
    Toast.makeText(getApplicationContext(), test.toString(), Toast.LENGTH_LONG).show();
And instead of getting a toast saying "TEST", I get whatsmymark.Lecture@41abcf8. I have a feeling its returning the actual lecture object rather than the string. However, I can't find out why cause the code is so simple.
 
     
     
    