public class HowToBecomeProgrammer { public static void main(String[] args) { JavaDeveloper developer = Arrays.stream(someMan) .filter(c -> !"kishka tonka".equals(c.getProperty())) .map(JavaDeveloperCourse::createDeveloper) .findFirst() .orElseThrow(() -> new RuntimeException("YOU ARE NOT READY YET"));
}
}
Комментариев нет:
Отправить комментарий