0
how to do this?
String word = "apple"; how can i take apart the chars from the String 'word', mix them up and display them like that: p , a , l , p , e ?
4 Respostas
+ 1
yahel
String word = "apple";
char[] w = word.toCharArray();
for(char c : w)
System.out.print(c + ",");
+ 1
0
AJ Anant , this is only displaying the chars as they are... i need them to be mixed up. not like: a , p , p , l , e ,
i need it like that (for example): l , p , a , p , e
0
Kaustubh Vats thank you!