Hi there, I am new to Java and the concept of requiring a class/object to do everything..
I am creating a menu based program and hence need to re-use segments of code. If I was writing in C, I would just create a method above the main program and then call that method each time I wanted to, for example, display a menu.
The program I'm writing has two main classes from which I create objects to store data (imagine a 2D array of data but have used two arrays of objects instead). But let's say I want to re-use code that does not necessarily relate to either of the classes/objects, it's just the menus, etc. Would I create a separate class/object for that purpose? I am struggling with this for some reason..
Lil help? Thanks in advance!
Nick