Any dependencies that are already available at the runtime environment can be given the scope of
provided and these will not be included by the
List (Java Doc) is a very common task and the Java Collections Framework (Guides) provides methods that perform this, such as the
Collections.sort() (Java Doc)method. Unfortunately this method will not work on all instances of type
List, such as
CopyOnWriteArrayList (Java Doc). This article provides a neat and simple way to have of how to obtained an ordered list.
Imagine you are waiting for a call from your girlfriend with whom you had an argument. She too is waiting for you to call her and apologise. In other words, both of you are waiting for the other to call. Now if no one takes the phone and calls the other, you will never talk again. This is a deadlock and in this article we will see how deadlock occurs in programming and how to prevent it.
Object Oriented Programming changed the way we build programs. It enabled us to create rich objects encapsulating both scope (fields) and logic (methods). While all modern programming languages, such as Java (Homepage), support objects (and object oriented programming), many implementations make pure use of them. In this article we will see how objects can be used to our advantage and how to think in an object oriented way.
Discusses the benefits that Maven brings to the table when developing software applications. It first develops a project without using Maven and the rebuilds the same project using Maven.
Provides an example about how to use the code examples found in this website.
This tip shows how to escape text when pasting into a String literal. This can come handy especially when working with file paths.
This article describes the challenges encountered when developing a caching algorithm. It also provides a simple, yet very powerful generic and thread-safe caching algorithm that can be used in many scenarios.