referencing objects from static method
Hi, having a little trouble with a program, any help would be greatly appreciated!
Basically I have a Menu class with one static Main() method.
From this class a user has a choice by typing into terminal, and one of the choices is to display all information that will have been stored in an instance of my SortedLinkedList class (a subclass of LinkedList).
The instances of SLL are created in an InputReader class that reads books and users from a file and stores them in seperate SLLs.
So my question is, how can I print out the contents of these SLLs (by calling the overwritten toString() method) from the static method in Menu.
Or generically speaking, I think the question is:
How can I can call a method on an object from a static method in another class?
Thanks