Recent Posts

Solution to Leetcode - Happy Number

As part of 30 days challenge during the Corono pandemic, Leetcode published this problem on the second day: A happy number is a number defined by the foll...

Spring - Read Http Request headers

In the previous article we saw how to use request parameters and request body of a request. In this article we will see how to use the request headers.

Java 8 Streams 101

Java 8 introduced a new Stream API. In this article we will take a look at how to create and use streams.

Creating CSV from Strings in Java

Earlier in Java 7, you needed a StringBuilder to create a CSV from list. From Java 8 onwards, there are multiple ways to achieve this depending on the task i...

See all posts