Articles, Home

Java Array Sort – Arrays.sort() Example – HowToDoInJava

Java example to sort an array of primitives and objects which implement Comparable interface. Quick Reference: 1) Sort array of primitives Use Arrays.sort() method to sort an array of primitives such as int, long or String values. 1.1) Sort array in reverse order Use Arrays.sort(arr,Collections.reverseOrder()) to sort an array in reverse oder. 2) Sort array …

Articles, Home

Do I need to pay for Java now?

This post gives an overview of the new Java release train as it was announced by Oracle. Next to this the article provides some important information and hints how you should handle new Java releas…

Articles, Home

A Guide to Formatting Code Snippets in Javadoc

Sometimes you want to add code snippets to our Javadoc comments, especially when developingan API of some kind. But how do you mark the code snippet so that it will be rendered correctlyin the final Javadoc HTML, especially when special characters like ‘<', '>‘ and ‘@’ are involved?Since there are multiple options to do this – each with different results – this blog post gives an overview on these options and a guideline on when to use which.