Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8158acb

Browse files
author
haohao
authored
Update README.md
1 parent 07c1704 commit 8158acb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

‎README.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,11 +801,17 @@ public final class Wrapper<T> {
801801
}
802802
}
803803

804+
Wrapper<String> wrapper = new Wrapper<>("Hello Kotlin");
805+
System.out.println(wrapper.getItem());
806+
804807
```
805808
**Kotlin**
806809
```kotlin
807810
class Wrapper<T>(val item: T)
808811

812+
var wrapper = Wrapper("Hello Kotlin")
813+
println(wrapper.item)
814+
809815
```
810816
---
811817
## 持续更新中。。。

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /