You are viewing a single comment's thread. Return to all comments →
There is import java.util.* but I was not able tyo use 'IntStream' in my solution. Eg:
public PerformOperation isPrime() { return num -> num > 1 ? IntStream.range(2, num - 1).filter( n -> num%n == 0 ).count() == 0 : false; };
Why IntStream cannot be resolved ? It is compiling in my IDE.
Seems like cookies are disabled on this browser, please enable them to open this website
Java Lambda Expressions
You are viewing a single comment's thread. Return to all comments →
There is import java.util.* but I was not able tyo use 'IntStream' in my solution. Eg:
Why IntStream cannot be resolved ? It is compiling in my IDE.