Answer is D,
public class Test {
public static void main (String[] args) {
List<String> cs = Arrays.asList("Java", "Java EE", "Java ME");
boolean b = cs.stream().allMatch(w -> w.equals("Java"));
System.out.println(b);
}
}
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.
pul26
Highly Voted 3 years, 7 months agoasdfjhfgjuaDCV
Most Recent 4 months, 3 weeks agosteefaand
5 months, 3 weeks agoMahdiHamdii
1 year, 7 months agoWilsonKKerll
2 years, 4 months agoTarik2190
3 years, 2 months agoSvetleto13
3 years, 2 months agolaura_lu93
3 years, 5 months ago