I am solving this problem:A user inputs a string consisting only alphabets and numbers (qqw123sfw33434).Now my job is to print an alphabet and a number like (q1q2w3s3f3w434) .I am able to extract both the both the Strings and integers into separate arrays.Now I need a logic to print one element of the array followed by another:
Before you start the step you're attempting, you need to back up and change some things. You're not going to find your two arrays in their current states to be very useful/helpful in the solving of this problem. For example, tokensStrings holds the following Strings: "qqw", " ", " ", "sfw". To make your job a lot simpler, you first need to find a way to store each letter in its own index: "q", "q", "w", "s", "f", "w". Do the same with tokensInts. If you're still having problems after you've done that, I'll be glad to help you further.