Skip to content

Commit 87ec5af

Browse files
authored
Update README-ZH.md
1 parent e71ac14 commit 87ec5af

File tree

1 file changed

+20
-30
lines changed

1 file changed

+20
-30
lines changed

README-ZH.md

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,20 @@
11
![](http://upload-images.jianshu.io/upload_images/1110736-25da08f052608195.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
22

33
# From Java To Kotlin
4-
[![Mindorks](https://img.shields.io/badge/mindorks-opensource-blue.svg)](https://mindorks.com/open-source-projects)
5-
[![Mindorks Community](https://img.shields.io/badge/join-community-blue.svg)](https://mindorks.com/join-community)
6-
4+
[![HassanUsman Community](https://img.shields.io/badge/join-community-blue.svg)](http://learnyandroid.blogspot.com/)
75
## 打印日志
86
- Java
97

108
```java
11-
System.out.print("Amit Shekhar");
12-
System.out.println("Amit Shekhar");
9+
System.out.print("Hassan Usman");
10+
System.out.println("Hassan Usman");
1311
```
1412

1513
- Kotlin
1614

1715
```kotlin
18-
print("Amit Shekhar")
19-
println("Amit Shekhar")
16+
print("Hassan Usman")
17+
println("Hassan Usman")
2018
```
2119

2220
---
@@ -25,15 +23,15 @@ println("Amit Shekhar")
2523
- Java
2624

2725
```java
28-
String name = "Amit Shekhar";
29-
final String name = "Amit Shekhar";
26+
String name = "Hassan Usman";
27+
final String name = "Hassan Usman";
3028
```
3129

3230
- Kotlin
3331

3432
```kotlin
35-
var name = "Amit Shekhar"
36-
val name = "Amit Shekhar"
33+
var name = "Hassan Usman"
34+
val name = "Hassan Usman"
3735
```
3836

3937
---
@@ -78,16 +76,16 @@ val length = text?.length
7876
- Java
7977

8078
```java
81-
String firstName = "Amit";
82-
String lastName = "Shekhar";
79+
String firstName = "Hassan";
80+
String lastName = "Usman";
8381
String message = "My name is: " + firstName + " " + lastName;
8482
```
8583

8684
- Kotlin
8785

8886
```kotlin
89-
val firstName = "Amit"
90-
val lastName = "Shekhar"
87+
String firstName = "Hassan";
88+
String lastName = "Usman";
9189
val message = "My name is: $firstName $lastName"
9290
```
9391

@@ -297,18 +295,18 @@ map.put(3, "Mindorks");
297295
// Java 9
298296
final List<Integer> listOfNumber = List.of(1, 2, 3, 4);
299297

300-
final Map<Integer, String> keyValue = Map.of(1, "Amit",
298+
final Map<Integer, String> keyValue = Map.of(1, "Hassan",
301299
2, "Ali",
302-
3, "Mindorks");
300+
3, "Hp");
303301
```
304302

305303
- Kotlin
306304

307305
```kotlin
308306
val listOfNumber = listOf(1, 2, 3, 4)
309-
val keyValue = mapOf(1 to "Amit",
310-
                     2 to "Ali",
311-
                     3 to "Mindorks")
307+
val keyValue = mapOf(1 to "Hassan",
308+
2 to "Ali",
309+
3 to "Hp")
312310
```
313311

314312
---
@@ -562,23 +560,15 @@ var result = 3.triple()
562560

563561
---
564562

565-
### 你需要知道一些比较重要的事
566-
* [Learn Kotlin - lateinit vs lazy](https://mindorks.com/blog/learn-kotlin-lateinit-vs-lazy)
567-
* [Learn Kotlin - apply vs with](https://mindorks.com/blog/learn-kotlin-apply-vs-with)
568-
* [Learn Kotlin - Data Class](https://mindorks.com/blog/learn-kotlin-data-class)
569-
* [Learn Kotlin - Destructuring Declarations](https://mindorks.com/blog/learn-kotlin-destructuring-declarations)
570-
* [Learn Kotlin - Extension Functions](https://mindorks.com/blog/learn-kotlin-extension-functions)
571-
* [Learn Kotlin - Sealed Classes](https://mindorks.com/blog/learn-kotlin-sealed-classes)
572-
573563
### 如果你觉得这个项目对你有帮助 :heart:
574564
* 你可以通过点击 :star:表示支持 :v:
575565

576-
[Check out Mindorks awesome open source projects here](https://mindorks.com/open-source-projects)
566+
[Check out Hassan's awesome blog here](http://learnyandroid.blogspot.com/)
577567
578568
579569
### License
580570
```
581-
   Copyright (C) 2017 MINDORKS NEXTGEN PRIVATE LIMITED
571+
   Copyright (C) 2017 Hassan Usman PRIVATE LIMITED
582572
583573
   Licensed under the Apache License, Version 2.0 (the "License");
584574
   you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)