/**
* @author lautturi.com
* Java example: remove character from string
*/
import java.util.*;
public class Lautturi {
public static void main(String[] args) {
String str = "hello lautturi python world!";
String newStr = str.replace("o", "");
System.out.println(newStr);
}
}
output:
hell lautturi pythn wrld!