https://i.stack.imgur.com/Daxvo.png
So this is my assignment. I was able to split the input using the split()
method, which created an array, splitArray. But the problem is, I don't know how to transfer the contents of the splitArray to the phoneNumberVec and nameVec array.
splitArray[] data:
Joe
123-5432
Linda
983-4123
Frank
867-5309
Is there a way to put the names into one array and the numbers in another?
I hope I was clear on my question, I'm new to this whole thing! Thank you!