Sometimes there is a need to initialize Spring bean after construction. Basically there are two ways to do that, which we will cover here.
Continue reading Initialize Spring bean after constructionPalindrome is a sequence of chars which reads the same backward and forward. Detecting palindrome is a common job interview task therefore we’ll show how to implement that.
Continue reading Palindrome detector in JavaShuffling of arrays/lists sounds like a trivial task, but in reality it’s full of subtle traps. Here we show how to implement Fisher-Yates Shuffle Algorithm in Java.
Continue reading Shuffle Algorithm in JavaTo calculate MD5 hash in Java we can use pure Java approach or use libraries. In this post we’re going to show how to calculate Message Digest in different ways.
Continue reading MD5 hash in JavaFor long time MongoDB didn’t have any means to join collections, but since version 3.2 there is a way to do simple left outer join of two collections.
Continue reading MongoDB join collectionsMongoDB integrates with JSON very well, but how to convert JSON to Document/DBObject using MongoDB API? In this post we show two solutions.
Continue reading MongoDB JSON to Document/DBObjectA common problem when starting with MongoDB is how to generate random test data in MongoDB. A large data set is especially needed for MongoDB performance tuning.
Continue reading How to generate random test data in MongoDBSpring Framework is really great when it comes to i18n. It applies different strategies to get user’s locale from request. In this post we’ll show how apply that!
Continue reading Spring Locale from RequestMongoDB import/export data can be performed using many different tools. In this post we show how to use them to move MongoDB data around!
Continue reading MongoDB import/export dataDivide and Conquer algorithms are great subject for parallelism. Here we present Parallel Merge Sort implemented using Java ForkJoin Framework.
Continue reading Parallel Merge Sort in Java