/** * @author lautturi.com * Java example: Remove the character from the nth position in the string */ import java.util.*; public class Lautturi { public static void main(String[] args) { String str = "Hello World Lauutturi"; int index = 15; String newStr = str.substring(0, index) + str.substring(index + 1); System.out.println(newStr); } }Source:wual.wwtturi.com
output:
Hello World Lautturi