Skip to content

Commit b295a09

Browse files
committed
update
1 parent 0f1fb73 commit b295a09

File tree

5 files changed

+44
-21
lines changed

5 files changed

+44
-21
lines changed

dev_projects/RxJava/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
## Ref
44
- https://www.youtube.com/watch?v=7mbjhNCWqvs&list=PLZ3FH0lcV0117kiek3g-qiQDkO4ezy_Ro
55
- https://www.youtube.com/watch?v=EExlnnq5Grs&list=PLqq-6Pq4lTTYPR2oH7kgElMYZhJd4vOGI
6+
7+
8+
## Progrrs
Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,10 @@
11
package com.yen;
22

3-
import rx.Observable;
43

54
public class Main {
65
public static void main(String[] args) {
76

8-
System.out.println("Hello world!");
9-
10-
/** part 1
11-
*
12-
* https://youtu.be/7mbjhNCWqvs?si=nuGVikk2eSXVRqUE
13-
*/
14-
Observable<String> observable = Observable.create(emitter -> {
15-
emitter.onNext("click on 1");
16-
emitter.onNext("click on 2");
17-
emitter.onNext("click on 3");
18-
});
19-
20-
observable.subscribe(item -> {
21-
System.out.println(item);
22-
}, throwable -> {
23-
System.out.println(throwable.getMessage());
24-
}, () -> {
25-
System.out.println("op complete !");
26-
});
27-
7+
System.out.println("RX Hello world!");
288
}
299

3010
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
package com.yen.courseV1;
2+
3+
// https://youtu.be/7mbjhNCWqvs?si=GtCY3Wk5AFTdjYgS
4+
5+
import rx.Observable;
6+
7+
public class part1 {
8+
public static void main(String[] args){
9+
10+
Observable<String> observable = Observable.create(emitter -> {
11+
emitter.onNext("click on 1");
12+
emitter.onNext("click on 2");
13+
emitter.onNext("click on 3");
14+
15+
emitter.onCompleted();
16+
});
17+
18+
observable.subscribe(item -> {
19+
System.out.println(item);
20+
}, throwable -> {
21+
System.out.println(throwable.getMessage());
22+
}, () -> {
23+
System.out.println("op complete !");
24+
});
25+
26+
}
27+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.yen.courseV1;
2+
3+
// https://youtu.be/ApUUN55V2RE?si=zOpzZ14He9IzmqGZ
4+
5+
public class part2 {
6+
public static void main(String[] args) {
7+
8+
}
9+
}

dev_projects/RxJava/progress.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Progress
2+
3+
## 20240719
4+
- https://www.youtube.com/watch?v=7mbjhNCWqvs&list=PLZ3FH0lcV0117kiek3g-qiQDkO4ezy_Ro

0 commit comments

Comments
 (0)