1 2 3 4 5 6 7 8 9
public class pr8945 { public static void main(String[] args) { String foo = "hello"; int pos = 3; System.out.println(foo.substring(pos,++pos)); } }