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 c6ebd7c

Browse files
author
haohao
authored
Update README.md
1 parent adda044 commit c6ebd7c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

‎README.md‎

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,29 @@ println(p.toString())
762762

763763
// name : haohao, age : 25
764764

765+
```
766+
---
767+
### Java Call Kotlin
768+
769+
**Kotlin**
770+
771+
```kotlin
772+
// Example.kt
773+
package demo
774+
775+
class MyClass
776+
777+
fun func() {
778+
779+
}
780+
781+
```
782+
783+
**Java**
784+
```java
785+
new demo.MyClass();
786+
787+
demo.ExampleKt.func();
765788
```
766789
---
767790
## 持续更新中。。。

0 commit comments

Comments
(0)

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