I am surprised you are not getting the input returned.
Suggest you take off the original initialisations, which are unnecessary. Change
to
I presume you have all that lot in the same method?
I have tried out what you are describing, and entering
Campbell
93847593479
Ritchie
causes it to print
Campbell
93847593479
Ritchie
That appears to be what you wanted. You are obviously doing something you haven't yet described. Are you creating anotherClass (BTW: the names you are giving your objects and classes are very poor) twice? It is very awkward tryin gto work out what you are doing when you only post part of your code.
This is how I think you are trying to do it:
Only I have changed some of the names. Please go through that and see where it differs from what you have got.
And it is late here; I am off to bed.