We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e0da89 commit e2b2a1fCopy full SHA for e2b2a1f
src/com/winterbe/java8/samples/misc/String1.java
@@ -10,10 +10,19 @@ public class String1 {
10
11
public static void main(String[] args) {
12
testJoin();
13
+ testChars();
14
testPatternPredicate();
15
testPatternSplit();
16
}
17
18
+ private static void testChars() {
19
+ String string = "foobar";
20
+ string.chars()
21
+ .filter(c -> c > 100)
22
+ .mapToObj(c -> (char)c)
23
+ .forEach(System.out::println);
24
+ }
25
+
26
private static void testPatternSplit() {
27
Pattern.compile(":")
28
.splitAsStream("foobar:foo:bar")
0 commit comments