Java:Java16新特性

来自WHY42

JDK

  • if (obj instanceof String s && s.length() > 5) {
  • record Point(int x, int y) { }