Add java17-features module: runnable demos and captured output for the ankurm.com java17-features article
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
$ javac src/RecordsDemo.java && java RecordsDemo (17.0.20.1)
|
||||
toString : Point[x=3, y=4]
|
||||
equals : true hashCode equal: true
|
||||
accessor : p.x() = 3, distance = 5.0
|
||||
compact ctor : negative coordinate: -1,2
|
||||
shallow : Team[name=core, members=[a, b]] <- the record's list changed after construction
|
||||
Reference in New Issue
Block a user