diff --git a/index.html b/index.html index 10b06e3..d8fff6f 100644 --- a/index.html +++ b/index.html @@ -176,7 +176,7 @@
public class Point {
+ public class Point {
private final int x, y;
public Point(int x, int y) { ... }
public int getX() { return x; }
@@ -186,7 +186,7 @@ Java has evolved.
Your code can too.
public record Point(int x, int y) {}
+ public record Point(int x, int y) {}