+ 1

Changing data type..

Ok elements of arr are 9.........0 Now, I want to print them as a string or character and store them... in a new array... How to do it? https://code.sololearn.com/cO5pXH9OgXBn/?ref=app

17th Jan 2021, 11:00 AM
Name
Name - avatar
1 Odpowiedź
+ 1
1. Initialize an String array of the same size as your int array. 2. On iterating through the int array, take the current value, cast it to a string and put it into corresponding place inside the String array.
17th Jan 2021, 11:34 AM
Lisa
Lisa - avatar