Thursday, 11 September, 2025г.
russian english deutsch french spanish portuguese czech greek georgian chinese japanese korean indonesian turkish thai uzbek

пример: покупка автомобиля в Запорожье

 

First Contact with Switch Expressions in Java 12

First Contact with Switch Expressions in Java 12У вашего броузера проблема в совместимости с HTML5
With Java 12, `switch` is no longer just a statement, but becomes an expression. That means it can have a return value (instead of having to assign or return results) and with a lambda-like syntax that doesn't fall-through (no more `break` ?) and exhaustiveness checks (less `default` ) it is much more readable. Table of contents: 1:53 switch statement 4:39 switch expression 7:44 statement blocks 9:38 multiple case labels 11:20 exhaustiveness 14:48 no fall-through 15:36 poly expressions 20:42 other types 21:55 old-style colon form 24:25 outlook Definitive Guide To Switch Expressions: https://blog.codefx.org/java/switch-expressions/ JEP 325 - Switch Expressions: https://openjdk.java.net/jeps/325 JEP 12 - Preview Language and VM Features: https://openjdk.java.net/jeps/12 Repository with examples: https://github.com/CodeFX-org/demo-java-x Article on 'var': https://blog.codefx.org/java/java-10-var-type-inference/ Nicolai: * home: http://codefx.org * online Java courses: http://courses.codefx.org * on Twitter: https://twitter.com/nipafx
Мой аккаунт