I have the follow lambda expression:
public mylambdafunction(){
Optional<MyClass> optional = Arrays.stream(myClassesValues).filter(x ->
   new String(x.bytesArray,"UTF-16LE").equalsIgnoreCase(comparationString)).findFirst();
}
Well, the method   new String(x.bytesArray,” UTF-16LE”) raise the Exception UnsupportedEncodingException.
I’d like to raise the exception to the main function mylambdafunction(), somethings like:
public mylambdafunction() throws UnsupportedEncodingException{ 
....
}
Is that possible?
 
     
    