How do you turn a String input into an int array of [][]
Like for example if i have an input of 3a then it should return back to the index of [2][0] and if it have like 5e then it should go to the index of [4][4]
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Like this:
This outputs:
Also make sure to do some method of validation on the input before passing it into
createArray. A simple regex pattern would do the trick for that:[0-9][a-z].