Hello, I must append/insert few stuff in a StringB and then print it out; this my code:
StringBuilder text = new StringBuilder();
StringBuilder textBefore = new StringBuilder();
while (something) { //do it many times
text.append("something");
textBefore.append("Other");
}
String result = text.insert(1, textBefore.toString()).toString();
StringBuilder text = new StringBuilder();
StringBuilder textBefore = new StringBuilder();
while (something) { //do it many times
text.append("something");
textBefore.append("Other");
}
String result = text.insert(1, textBefore.toString()).toString();
To copy to clipboard, switch view to plain text mode
Now, I'm looking for a better solution, ie. using just one StringB is it possible for you?
thanks.
Bookmarks