Auf Thema antworten

[code=Java]

public static void main(String[] args) {

        String s = "\nf\n\nh";

        System.out.println(s.replace("\n", "")); // ausgabe: fh

    }

[/code]



Oben