Skip to content

Commit 4dc3b8e

Browse files
committed
Add code for module 1, part 3
1 parent 8f92c11 commit 4dc3b8e

File tree

10 files changed

+55
-0
lines changed

10 files changed

+55
-0
lines changed

src/main/java/eu/happycoders/datastructures/module2/p3_arrays_lists_streams/placeholder

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void main() {
2+
int[] array = {6, 1, 5, 7, 7};
3+
4+
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void main() {
2+
String[] array = new String[]{"kiwi", "coconut", "honeydew", "papaya"};
3+
4+
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void main() {
2+
int[] array = {6, 1, 5, 7, 7};
3+
4+
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java.util.stream.IntStream;
2+
3+
void main() {
4+
IntStream stream = IntStream.of(6, 1, 1, 5, 7);
5+
6+
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
void main() {
2+
String[] array = new String[]{"kiwi", "coconut", "honeydew", "papaya"};
3+
4+
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java.util.stream.Stream;
2+
3+
void main() {
4+
Stream<String> fruits = Stream.of("kiwi", "coconut", "honeydew", "papaya");
5+
6+
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java.util.List;
2+
3+
void main() {
4+
var list = List.of("tomate", "apple", "cherry");
5+
6+
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java.util.List;
2+
3+
void main() {
4+
var list = List.of("kiwi", "coconut", "honeydew", "papaya");
5+
6+
7+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import java.util.stream.Stream;
2+
3+
void main() {
4+
var stream = Stream.of("kiwi", "coconut", "honeydew", "papaya");
5+
6+
7+
}

0 commit comments

Comments
 (0)