0

Splitting word into letter using stack data structure

How can I get split word into letters? For instance: I have a word in the stack "dog" and I want to split into another stack like "d" "o" "g"

4th Mar 2018, 9:35 AM
Saya
1 Respuesta
0
something like....: char[] myChars = new char [yourString.length]; for (int I =0; I <yourString.length;I ++){ myChars[I ] = yourString.charAt(I);
4th Mar 2018, 10:23 AM
Farshaad Heydari
Farshaad Heydari - avatar