Skip to content

Commit 3d110f6

Browse files
committed
Update Usage Examples
1 parent 516b221 commit 3d110f6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,13 @@ dependencies {
5656
```
5757
## Usage
5858

59+
### Java
60+
61+
```java
62+
Coordinate2D coordinate2D = new Coordinate2D(1, 2);
63+
Coordinate3D coordinate3D = new Coordinate3D(1, 2, 3);
64+
```
65+
5966
```java
6067

6168
public class Main {
@@ -78,6 +85,13 @@ public class Main {
7885

7986
```
8087

88+
### Kotlin
89+
90+
```kotlin
91+
val (x, y) = Coordinate2D(1, 2)
92+
val (x, y, z) = Coordinate3D(1, 2, 3)
93+
```
94+
8195
```kotlin
8296

8397
fun main() {

0 commit comments

Comments
 (0)