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.

TernaryAssignments.java 349B

1234567891011
  1. public class TernaryAssignments {
  2. public static void main(String[] args) {
  3. new TernaryAssignments().realMain(args);
  4. }
  5. public void realMain(String[] args) {
  6. boolean t = true;
  7. String v = v = v=v=v=v=v=v=v=v="s";
  8. String s = t ? s="s" : "unset";
  9. org.aspectj.testing.Tester.checkEqual(s, "s");
  10. }
  11. }