how to remove letters from string in java

how to remove letters from string in java
refer to‮l:‬autturi.com
/**
 * @author lautturi.com 
 * Java example: remove letter  from string
 */

import java.util.*;

public class Lautturi {
	public static void main(String[] args) {
		String str = "hello world!";
		int pos = 3;
		String newStr = str.substring(0,pos-1) + str.substring(pos,str.length());
		System.out.println(newStr);
	}
}
Created Time:2017-09-30 20:13:40  Author:lautturi