Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!

Question list filters

Filter by
Sorted by
Tagged with
Filter by Employee ID
Score of 2
1 answer
109 views

I'm searching for an approach to read single line from Stdin using the Cactoos library. I can do something like this: System.out.println( new TextOf( new ReaderOf( new Stdin() ) )....
Score of 1
1 answer
84 views

The task is to get all the lines from the file except the lines starting with #, using only the cactoos library. I got the following solution: Iterable<Text> data = new ...
Score of 3
2 answers
438 views

Is there in Cactoos framework some Text decorator (or maybe some other way), which replace null string with empty string? Like Strings.nullToEmpty function in Google Guava. I have found NoNulls ...
Score of 2
1 answer
53 views

I've installed the checkstyle-idea (v8.16) for IntelliJ, there are two options of Configuration files, 'Sun Checks' and 'Google Checks'. Is there a specific file for Cactoos project? Because both ...
Score of 3
1 answer
164 views

Is there flatMap analogy in Cactoos library? I need exactly what flatMap can, but without streams: The flatMap() operation has the effect of applying a one-to-many transformation to the elements of ...
Score of 2
1 answer
107 views

I have a file, which is formatted like this: header line 1 header line 2 header line 3 line 1 line 2 line 3 ... I need to get Iterable<String> with those lines (line 1, line 2, line 3 etc.), ...
Score of 2
2 answers
88 views

I'm looking for some sort of OO equivalent to the apache commons utility, which is the common way of handling this in java: StringUtils.containsIgnoreCase("foobar", "OOB") Is there a way to do this ...
Score of 2
3 answers
304 views

I need to calculate sum of Iterable<Integer>. final Iterable<Integer> score = this.points() final sum = new SumOfInts(...).value() How can I do this using class SumOfInts?
Score of 2
1 answer
150 views

While refactoring Rultor to use Cactoos instead of Guava, I’m having an issue with DockerRun class, in the envs method. The current refactored result is: final List<String> entries = new ...
Score of 4
2 answers
1266 views

While refactoring Rultor to use Cactoos instead of Guava, I’m having an issue with negative tests of GithubProfileTest and GithubProfileValidationTest. After the refactor, the positive test cases ...
Score of 5
2 answers
522 views

I'm refactoring some usages of Google Guava library to Cactoos library and I'm having difficulty figuring out the equivalent implementation of both Function class and Iterables.transform method, using ...