Şu satırı dahil ederiz
import org.apache.commons.lang3.function.Failable;
Örnek
Şöyle yaparız
Stream<String> stream = Stream.of("...", "...", "..."); Failable.stream(stream) //throws a ClassNotFoundException wrapped in an UndeclaredThrowableException at runtime. .map(Class::forName) .forEach(System.out::println);
Hiç yorum yok:
Yorum Gönder