gcc/libjava/testsuite/libjava.lang/pr8945.java

10 lines
166 B
Java
Raw Normal View History

public class pr8945
{
public static void main(String[] args)
{
String foo = "hello";
int pos = 3;
System.out.println(foo.substring(pos,++pos));
}
}