News for hackers. Stuff that matters.
Re:Java 21: What’s New? by trealira on Wednesday August 09, 2023 @05:13PM (#37068493)
And that "older Java" example itself is an alternative (added in Java 16, from looking it up) to what existed before.

  if (obj instanceof Point) {
      Point p = (Point) obj;
      int x = p.x();
      int y = p.y();
      System.out.println(x + y);
  }

There are no comments on this comment yet.