how should I set the data being entered by the user in main...please give an example how..
And what have I been doing in the last posts?
All that code and examples aren't they enough?
You have your main; you are already reading the data from the keyboard; and setting them to the array. The examples given answer exactly your questions. It is not as if I do not want to answer your question because I already have answered it. I even implemented one of the methods (add) for you, and told you how to do the others. Posting the same code and giving the same explanations is a waste of time. My time.