We take a look at some code that can help you to read text from an image with your Java application. Possible uses? Making sure your Captcha is doing its job.
Triggering a Mule flow or a sub-flow by sending it a message payload and then using the response payload for your further processing is pretty straightforward.
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.