I wrote this piece of code:
private double[] myArray = {1.0, 2.4, 9.3};
public void testMet(double value){
if(Arrays.asList(myArray).stream().noneMatch(a -> a==value)){
...
}
}
I am getting the error Operator '==' cannot be applied to 'double[]', 'double
. What is the problem here and how can I fix it?