Read this FAQ
for instructions on how to post code correctly and other useful tips for newcomers. Also, tell us what you think is wrong or what you'd like help with. Post errors, sample runs, whatever it takes to explain what's wrong with your code or why you're stuck and ask specific questions about what you don't understand that will help you move forward.
This sentence, "i didn't know how to take the variable credit card number and assign it to an array after i'm finished," doesn't make sense. You might look at the String API to get ideas on what can be done with String objects to accomplish what you're trying to do.