Recent Posts - page 3
-
Java 15 – Text blocks
Text blocks are all about writing multi-line strings in a clean and readable way. This was added as part of JEP 378 in Java 15. One can read the detailed information of the feature from the JEP details. In this… Read More ›
-
Difference between Function.andThen and Function.compose
There are two different ways to mix functions in Java: using andThen using compose It is important to understand the difference between the two. andThen: function1.andThen(function2) will first apply function1 to the input and the result of this will be… Read More ›
-
Book Review: Do Epic Shit
“Do Epic Shit” is a self-help book by Ankur Warikoo which was released on December 2021. This is an amazing book. Very easy to read. The author has been honest and has shared his experiences so that anyone treading the… Read More ›
-
Different ways of declaration and initialization of arrays in Java
The below code shows the different ways one can declare and initialize an Array in Java: Line 5: Declaration of array along with initialization of its values. Here it is not required to pass the size of the array. Line… Read More ›
-
Testing the File Upload API in Spring Boot
In one of my previous post, I had created an API to upload file. In this post I will write a JUnit test to test the API. We will test the complete flow right from uploading till it is copied… Read More ›
-
Upload files in Spring Boot application using Commons FileUpload
In our previous post, we saw how to upload a file using the Spring framework’s default implementation for MultipartFile interface. In this post, we will see how we can use the Commons FileUpload library and the wrapper implementation CommonsMultipartFile provided… Read More ›
-
Uploading files in Spring Boot application
Uploading files is one of the most common operations in a web application. In this article we will look at how to upload file from an HTML page and copy it to the file system on the server. Creating a… Read More ›
-
How to use regular expression in Java?
Regular expressions are very important tool for seraching in text. Below is the code snippet for executing regex search and capturing different parts of the string based on the regular expression The groups are captured by using (). In the… Read More ›
-
How to parse number string with commas to Integer or Long?
Below is the code used for parsing number string with commas to Integer or Long
-
Using Websocket with Spring Framework and Vuejs
Websockets are full duplex (persistent) connections between client and server such that both can share information with each other without the need for repeatedly establishing a new connection. This removes the need for repeated polling from the client to get… Read More ›
Featured Categories
Java ›
-
Convert XML to HTML using XSLT in Java
March 13, 2023
-
Integrate with OpenAI(ChatGPT) Chat Completion API in Java using Webclient
March 8, 2023
General ›
-
Working with LocalDate, LocalTime and LocalDateTime
September 27, 2018
-
Getting to know about java.nio.file.Path – 2
September 5, 2017
Books ›
-
Book Review: Rework
July 21, 2022
-
Book Review: Make Time
July 17, 2022