If I want to define a list of strings containing three items "Larry", "Curly" and "Moe"; and then later on I want to add "Shemp" to this list, is there any way to do this, which does not involve the use of 4 separate adds? What's the best way to complete this operation?
Edited for clarification: I'm using this list of 4 items as an example. In my actual program I need to create a much larger list (hence, why I am looking for a less cumbersome method). And the primary objective is that I would like to define some of the elements of the list right in when I am initializing it, but I also need to add a few elements to the list later on in the code.
ArrayListwithaddmethod.