mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-20 12:49:27 +08:00
453eac4a7d
* libjava.lang/pr8945.java: New file. * libjava.lang/pr8945.out: New file. From-SVN: r60286
10 lines
166 B
Java
10 lines
166 B
Java
public class pr8945
|
|
{
|
|
public static void main(String[] args)
|
|
{
|
|
String foo = "hello";
|
|
int pos = 3;
|
|
System.out.println(foo.substring(pos,++pos));
|
|
}
|
|
}
|