Year: 2018

Last Updated on June 24, 2019 by Simanta Converting a Java Map to a List is a very common task. Map and List are common data structures used in Java. A Map is a collection of key value pairs. While a List is an ordered collection of objects in which duplicate values can be stored. In […]Continue reading

Last Updated on October 21, 2024 by jt MySQL is the most popular open-source database management system. MySQL uses a relational database and Structured Query Language (SQL) to manage its data. In this post, I’ll show you how to install MySQL on Ubuntu. Installing MySQL There are two ways to install MySQL on Ubuntu. First […]Continue reading

Last Updated on May 26, 2019 by Simanta When you are developing Spring Boot applications with database interactions, you typically use Hibernate as the Object Relationship Mapping (ORM) tool. Instead of directly coupling your code with Hibernate, often you’d rather use Spring Data JPA, a Spring Framework project. Spring Data JPA makes implementation of the […]Continue reading

Last Updated on June 16, 2019 by Simanta A common requirement while programming in Java is to convert String to int. UI inputs in Web-based HTML, JSP, or Thymeleaf templates are transferred to backend Java applications as strings. It is the application developer’s responsibility to perform any String to int conversions to fulfill business logic, […]Continue reading

Last Updated on May 20, 2019 by Simanta One common requirement in Java application is to iterate through the elements of a collection. Prior to Java 8, the three most common ways to iterate through a collection are by using the while loop, for loop, and enhanced for loop. As the Java Collection interface extends […]Continue reading

Last Updated on October 22, 2024 by jt Prior to Jackson 1.2, the only way to serialize or deserialize JSON using Jackson was by using one of the following two methods: Now imagine you want to serialize or deserialize a 3rd party POJO which you don’t have access to its source code. What would you […]Continue reading