Create a Simple WebSocket application with Java EE

In this tutorial, I’m going to create a simple WebSocket server with Java EE that I can use Javascript Websocket API to connect and send/receive messages. I’m going to use Eclipse as the IDE. You can try with another IDE/text editor. However, I would recommend you use Eclipse since I didn’t have much luck with … Read more

Selection sort in Java

Selection sort is one of the simple sorting algorithms. Its time complexity is O(n2). Selection sort fundamental Two nested loops Involves swapping At the end of each iteration, the lowest element is at the right position Selection sort steps As mentioned above, there are two loops in this algorithm. Essentially, the steps as below: Let’s … Read more

Setup Cucumber, TestContainers & Junit5 in Spring Boot Project

Since I spent countless hours finding the correct setup for Cucumber, TestContainers and Junit5 (Jupiter) for my Spring Boot project, I hope this tutorial can somehow save you time and help you avoid needless pain. Before you begin, I hope you already know what Cucumber, TestContainers, and Junit5 (and of course Spring Boot) are. If … Read more