5 lines
89 B
Java
5 lines
89 B
Java
// Simple records
|
|
record Point(x, y){ }
|
|
|
|
//Combination of records
|
|
record Line(pt1, pt2){} |