Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • Ur solution works, only thing that I dont like in it, is creating a new class coz thats what I wanted to avoid when I asked a question. Thanks anyway =) Commented Sep 29, 2017 at 12:23
  • 1
    Well you dont have to create the ListManager class. You can keep the List in the Main class. That works too. Its hard to tell without context. But i guess you can figure the solution that suits you best. Commented Sep 29, 2017 at 12:25