You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

TypeCoercions.java 240B

123456789
  1. import org.aspectj.testing.Tester;
  2. public class TypeCoercions {
  3. public static void main(String[] args) {
  4. char c1 = 'e', c2 = 'f';
  5. Tester.checkEqual("hello".indexOf(c1), 1);
  6. Tester.checkEqual("hello".indexOf(c2), -1);
  7. }
  8. }