Java TechnologyJava Tutorial How to remove a particular character from a String by Online Tutorials Library July 22, 2022 60 How to remove a particular character from a string ? File: RemoveChar .java public class RemoveChar { public static void main(String[] args) { String str = “India is my country”; System.out.println(charRemoveAt(str, 7)); } public static String charRemoveAt(String str, int p) { return str.substring(0, p) + str.substring(p + 1); } } Output: India i my country Next TopicJava String FAQs charAt()examplejavamethodsignaturestring Share 0 FacebookTwitterPinterestEmail previous post How annotation works in Java next post Hyperfactorial in Java You may also like Java String charAt() method Java String toLowerCase() method Java Collections replaceAll() Method with Examples Java Interpreter Java SHA Java Email Validation