19 lines
338 B
Markdown
19 lines
338 B
Markdown
|
---
|
||
|
parents:
|
||
|
- "[[Вопросы для собеседование Java]]"
|
||
|
---
|
||
|
```java
|
||
|
public class Main {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
Uni.createFrom().item("test")
|
||
|
.onItem().ifNull().fail().replaceWith("test2")
|
||
|
.subscribe().with(System.out::println);
|
||
|
}
|
||
|
|
||
|
}
|
||
|
```
|
||
|
|
||
|
%%
|
||
|
test2
|
||
|
%%
|