Due to some API constraint, i need to convert enum.values to a String array and couldn't find any handy library to do this task. Therefore, I write the following code but I just wonder if there is any better way to do this?
Copy the Enum Values into an array and display the values in the array.
The code has already been given for copying the enum values names into a string array. Your requirement is very similar although you state you want to use char array (why?) so you will need an array of arrays. You can use the code above as the basis of what you want to do.
If there is something which you don't understand then please say and we will explain it to you but we won't just write the code for you.