remove Enter character by replacing \n - Android java.lang

Android examples for java.lang:Character

Description

remove Enter character by replacing \n

Demo Code


public class Main{

    public static String rmvEnter(String input) {
        return input.replaceAll("\n", "");
    }//from ww w .  ja v  a 2 s .c  o  m

}

Related Tutorials