summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/pr8945.java
blob: 9c5dce89a4acdadf5c8e73c15ce6e1368deaa652 (plain)
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));
  }
}