Glück muss man können!

Archive for the category “Java”

Java: More on Lists – double brace initialisation

Normal initialisation

List<String> myList = new ArrayList<String>();

Using Arrays.asList(…)

List<String> myList = Arrays.asList("ItemOne", "ItemTwo");

Double brace initialisation

List<String> myList = new ArrayList<String>() {
{ add("ItemOne"); add("ItemTwo"); }

Java Map/Collection Cheat Sheet

Java Map/Collection Cheat Sheet


Originally posted on http://www.sergiy.ca/guide-to-selecting-appropriate-map-collection-in-java/.

Top 7 reasons to learn Java 7 SE

Maybe worthwhile considering: Check out the Top 7 Reasons to learn Java 7 SE.

Deactivate your Java! Or just get the latest Java Version 7 Update 11…

I just found an interesting post on Google+ :

The U.S. Department of Homeland Security advises users to immediately deactivate Oracle’s Java due to its security flaws.

As a reaction to the security problems, Oracle offers a security fix w/ Java 7 Update 11.

Post Navigation