Uncategorized

Closures Are in Again

According to Sun, the controversial language feature, Closures, that was previously removed from the JDK 7 feature list has now been added in again (via).  I’m looking forward to the JSR on this one.  While I can’t see it being more elegant that using Scala, it will definitely make certain algorithms much nicer to implement in Java.

Using the New java.io.Console Class

The 1.6 release of the JDK included a new java.io.Console class, which adds some new features to enhance and simplify command-line applications. Notably, Console includes a method specifically for reading passwords that disables console echo and returns a char array; both important for security. Scenario: Getting Username and PasswordGetting a user’s username and password is probably one of the more common …

Using the New java.io.Console Class Read More »

Scroll to Top