7
I need to separate the characters of a string into numbers and letters.
Ex.:
Entree:
"A1B2C3D2Z9"
Exit:
List<Character> numeros = { '1','2', '3' }
List<Character> letras = { 'A', 'B', 'C' }
Use a for
to traverse the string
, only that I don’t know how to identify in the condition that checks whether the position of the string is a number or a letter.
Does anyone know how I can take this conditional test?
Character does not store Unicode symbols not? Only letters and numbers same?
– user28595
I mean the other symbols, like ®.
– user28595
Good, @diegofm. I added the reply. Thank you.
– Jéf Bueno