/** * @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); } }