Making getter, setter using String type Array
I want to know how to make getter, setters (IN JAVA) using string type array of size 5 or more in which a user inputs any 5 strings and the program should print all of them on the screen. I can make it easily using variables but can't do it with arrays. I need help please.
For Example the program prompts from user,
Input String 1:
Input String 2:
.
.
to 5:

And then prints all those on the screen.
Making getter, setter using String type Array
===

I want to know how to make getter, setters (IN JAVA) using string type array of size 5 or more in which a user inputs any 5 strings and the program should print all of them on the screen. I can make it easily using variables but can't do it with arrays. I need help please.
For Example the program prompts from user,
Input String 1:
Input String 2:
.
.
to 5:

And then prints all those on the screen.