Optional in Java Beitrags-Autor:admin Beitrag veröffentlicht:26. September 2024 Beitrags-Kategorie:Sonstiges var name = Optional.ofNullable(param) .filter(Predicate.not(String::isEmpty)) .orElse(DEFAULT);var name = Optional.ofNullable(param) .filter(Predicate.not(String::isEmpty)) .orElse(DEFAULT); Das könnte dir auch gefallen JDBC und DB2 25. Juli 2024 Netzwerkverbindungsprobleme 28. September 2012 CSV Import 13. August 2009