python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I rewrite this method using streams and lambda expressions?
I have this piece of code here that basically just creates a number of threads equal to the parameter, instantiates a MyRunnable object in each thread, adds the thread to a list of threads and then se...
Puneet Talapaneni
Votes: 0
Answers: 2
To return actor older than a certain age limit using Java Stream filter function
I want to return actor older than a certain age limit using Java Stream filter function, but my code returned an error message
Line 63: error: cannot find symbol [in Actor.java]
.filter(actor -> a...
silverpegasus
Votes: 0
Answers: 1
How to get a Map owned by an Object as an attribute from a List of these objects
I have an BOLReference object as follows:
private String ediTransmissionId;
private List<WorkflowExceptions> workflowExceptions;
And the inner WorkflowExceptions looks like below:
private Strin...
Mira Devi
Votes: 0
Answers: 1
How to rid of code duplication when two similar repositories?
Upon given type I want to retrieve data from either one or another repority. This is what I came up with:
if (type.equals("first")) {
codes = firstRepository.findAll().st...
Fedor Nikolaev
Votes: 0
Answers: 2