LinkedList is slightly slower than ArrayList with adding items to the end of the list. It is also slower when retrieving items with an index (random access).
Java has provided native enum types from version 1.5 onwards. Some issues arise with the use of enums in Java code, which this article attempts to address.
The factory pattern is one of the best known patterns in Java. If you're using lambda expressions, you can use those to implement the pattern, though beware scaling.
Concurrency and streams put up special challenges for exception handling, particularly checked exceptions. Fortunately, you can try to improve your lot with Try.
If you're loading your Spring context for every test, you have integration tests, not unit tests. These are slow! See, how to deal with the problem using Mockito.
In a kickoff to a series on the Java Collections framework, we look at the hierarchy and an overview of uses. It's more than just generic lists, maps, and sets!
Streams are an important functional approach that can impact performance via parallelism, augment and convert data structures, and add new tools to your kit.
This comprehensive guide will walk you through every step you need to take to create and configure editable tables in JavaFX, including handling a bug in the code.
Interfaces have seen massive improvements since they were first brought out. Combined with method definitions, you've got a lot of flexibility on your hands.
Want to incorporate a rules engine into your work? Drools might be more than you need, and Easy Rules might have too much ceremony for you. Enter RuleBook.
Java's Scanner class, and the occasional bit of RegEx, makes parsing text trivial. You can put this to good use in a number of ways, which we'll dive into here.