Search Results for: java 8
-
SAXParser
Read UTF-8 XML File in Java using SAX parser example
In the previous SAX parser tutorial we saw how to parse and read a simple XML File. If your file…
Read More » -
Core Java
Remove Line Breaks from a File in Java
Handling files is a common task, and sometimes it becomes necessary to manipulate the content within these files. One such…
Read More » -
Core Java
Convert Char Array to Int Array in Java
One common task we could encounter is converting character arrays to integer arrays. There are several ways to convert a…
Read More » -
Core Java
Rotate Arrays in Java
In Java, array rotation refers to shifting the elements of an array by a specified number of positions. This operation…
Read More » -
Enterprise Java
Reuse Testcontainers in Java
TestContainers is a powerful Java library that allows developers to easily create disposable Docker containers for integration testing. However, setting…
Read More » -
Core Java
Round a Double to Two Decimal Places in Java
When working with financial or mathematical data in Java, it’s often necessary to truncate or round floating-point numbers to a…
Read More » -
Core Java
Convert Between Double and Float in Java
Java offers two primary data types for representing floating-point numbers: double and float. But what exactly are they, and when…
Read More » -
Core Java
Create Char Sequence in Java
In Java, ASCII values refer to the numeric representation of characters in the ASCII (American Standard Code for Information Interchange)…
Read More » -
Core Java
Get File Extension From MIME Type in Java
A MIME type categorizes internet data by type and format. It can be linked to various file extensions, indicating compatibility.…
Read More » -
Core Java
Information Hiding vs Encapsulation in Java
In object-oriented programming, two key concepts often mentioned are information hiding and encapsulation. While they might seem similar, they serve…
Read More »