I am writing below piece of code and I need to refactor this below code. Such that
1)I don\'t want to give any static size in the String array.