In Java - What is the best way to combine / merge multiple JSONObjects? JSONObject is an unordered collection of name/value pairs and widely used in Java Enterprise applications for data transfer …
Basic HTML: How do you create blank space in HTML?
How to create blank white space in html? What is Spaces in HTML (Blank Spaces/ Whitespace)? What is HTML Basics--Whitespace? Spaces in HTML can be difficult to understand for the novice …
Read Article about Basic HTML: How do you create blank space in HTML? →
How to pretty print JSON in Java using Jackson and Gson both? Example attached
How to pretty print JSON string using Jackson? This will be very interesting tutorial. Sometimes in your Enterprise Java Application, you have to deal with lots of JSON data. Sometimes you have …
Read Article about How to pretty print JSON in Java using Jackson and Gson both? Example attached →
In Java How to Read a File and Convert File to String? (5 different ways)
What is simplest way to read a file into String? Do you want to read a plain text file in Java? How do you want to convert a File object to a String object? There are multiple ways we can read a file …
Read Article about In Java How to Read a File and Convert File to String? (5 different ways) →
In Java How to add New line in String?
In this tutorial we will go over two different ways to add new line to any String object. Let's get started: Create class CrunchifyAddNewLineToString.javaCopy below code and save …
Escape Character Utility for URL and JSON data – Feel free to use in your Java Project
What is escape character in Java? Mainly escape characters are the characters which replaces existing character with new & provided character which works best without throwing any error at …
In Java How to Escape HTML content? Simple Tutorial using Apache Commons Library
Sometime it's absolutely necessary to escape HTML content before you proceed over to Database operations or sending it as a POST call payload. Sometime back I've written a tutorial on Escape …
In Java how to Initialize HashMap? 7 different ways
In Java How to initialize HashMap? How to directly initialize a HashMap (in a literal way). There are 7 different ways you can initialize HashMap in Java. Method-1: Simple Mutable map: It's …
Read Article about In Java how to Initialize HashMap? 7 different ways →
Use “maven-shade-plugin” to Create just 1 Executable jar with all required Dependencies in it for your Java or Spring Project?
Just create one Crunchify.jar file with all dependencies inside it :) Last week I wrote a tutorial on how to use maven-resources-plugin, maven-dependency-plugin & maven-jar-plugin to generate …