org.aspectj/tests/new/TypeCoercions.java

10 lines
240 B
Java
Raw Normal View History

2002-12-16 19:51:06 +01:00
import org.aspectj.testing.Tester;
public class TypeCoercions {
public static void main(String[] args) {
char c1 = 'e', c2 = 'f';
Tester.checkEqual("hello".indexOf(c1), 1);
Tester.checkEqual("hello".indexOf(c2), -1);
}
}