BabyMitSchnully
Erfahrenes Mitglied
Hi Jungs und Mädels,
ich verzweifel. Warum? Ganz einfach.
WARUM DAS
ich verzweifel. Warum? Ganz einfach.
Code:
String abc = "abc_def"
abc = abc.replace('_',' ');
//Ausgabe sollte folgendes sein
ABC = "abc def";
//Ist es aber nicht. das Leerzeichen wird getrimmt. Warum auch immer. Selbst ein abc = abc + ' '; Trimmt das leerzeichen weg.
//Ausgabe ist
ABC = "abcdef";
WARUM DAS