A is the correct answer
A is the correct answer
import java.util.Arrays;
import java.util.List;
public class Main {
public static void main(String[] args) {
List<String> empDetails = Arrays.asList(
"100, Robin, HR",
"200, Mary, AdminServices",
"101, Peter, HR"
);
empDetails.stream()
.filter(s -> s.contains("1"))
.sorted()
.forEach(System.out::println);
}
}
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Destroyer
Highly Voted 4 years, 7 months agoasdfjhfgjuaDCV
Most Recent 4 months, 3 weeks agoiSnover
5 months, 3 weeks agosteefaand
5 months, 3 weeks agoInnovation
4 years, 6 months ago