ニュース

Pattern matching for switch (Java 21+) In older Java versions, switch statements could only compare simple values, such as numbers or enums.