Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
If you mean that from the word "word" you need to get:
with
a
word
,
then
I think this is possible:
public static String func(String str){
String strchar = "";
for(int i = 0; i < str.length(); i++)
strchar = strchar.concat(str.charAt(i)+"\n");
return strchar;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question