This post originated from an RSS feed registered with Java Buzz
by josef betancourt.
Original Post: Use truthy falsey booleans in Java
Feed Title: T. C. Mits
Feed URL: http://octodecillion.com/feed/
Feed Description: Java development and other technology topics
Some scripting languages such as PHP, JavaScript, and Groovy allow the use of object reference in a conditional context. They have a standard boolean coercion for certain objects or references, “truthy” and “falsy” values. Could this be useful in Java? For example, we can run this inline script in the Groovy language: or, What this [...]