The ternary operator in Java is a concise way to perform conditional operations. It’s a shorthand for the if-else statement and is represented by the ? : syntax.
Java Full Tutorial covers Java basics to advanced topics. Learn JVM, JRE, JDK, writing your first program, variables, data types, operators, loops, arrays, classes, objects, methods, constructors, and ...
Project Coin provides numerous “small language enhancements” as a subset of the new JDK 7 features. I recently blogged on Project Coin‘s switching on Strings and in this post I write about the new ...