File tree 5 files changed +44
-21
lines changed
RxJava/src/main/java/com/yen
5 files changed +44
-21
lines changed Original file line number Diff line number Diff line change 3
3
## Ref
4
4
- https://www.youtube.com/watch?v=7mbjhNCWqvs&list=PLZ3FH0lcV0117kiek3g-qiQDkO4ezy_Ro
5
5
- https://www.youtube.com/watch?v=EExlnnq5Grs&list=PLqq-6Pq4lTTYPR2oH7kgElMYZhJd4vOGI
6
+
7
+
8
+ ## Progrrs
Original file line number Diff line number Diff line change 1
1
package com .yen ;
2
2
3
- import rx .Observable ;
4
3
5
4
public class Main {
6
5
public static void main (String [] args ) {
7
6
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!" );
28
8
}
29
9
30
10
}
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change
1
+ # Progress
2
+
3
+ ## 20240719
4
+ - https://www.youtube.com/watch?v=7mbjhNCWqvs&list=PLZ3FH0lcV0117kiek3g-qiQDkO4ezy_Ro
You can’t perform that action at this time.
0 commit comments