how to delete character in string java

how to delete character in string java
refer ‮ot‬:lautturi.com
/**
 * @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!
Created Time:2017-09-30 20:07:46  Author:lautturi