Posts from Java

Unmodifiable Collection in Java

By Sushmit Vawal

Hello guys! So in this tutorial, we will learn about the unmodifiable collection in Java. Table of contents: Introduction. Method Syntax Example Explanation of code Conclusion Unmo.... Read More

Print each element from an associative array in Java

By Shristi Rani

In this tutorial, we will learn how to print each element in the associative array in Java, yes there are many ways to do so but here I want to make this tutorial easy to understan.... Read More

Serialization and Deserialization in Java

By Caushik Subramaniam

Serialization in Java refers to the process of translating the state of an object to a byte stream. The serialization was introduced in Java 1.1. This process is also called Marsha.... Read More

How to convert a map to a string in Java

By Shiksha Sinha

In this tutorial, we will learn how to convert a map to a string in Java. In Java, map is a collection where every map element contains key pairs. It means every key has one value .... Read More

How to add a newline character to a string in Java

By Shiksha Sinha

In this tutorial, we will learn how to add a newline character to a string in Java. Java language provides enormous features to make our tasks much easier. Strings in java also inc.... Read More

Remove the Last Character from String in Java

By Shiksha Sinha

In this tutorial, we will learn to remove the last character from String in Java in different ways. Java Class Library(JCL) contains a class called String which is available under .... Read More

Initialize an array with same values in Java – Multiple ways

By Shiksha Sinha

In this tutorial, we will learn how to initialize an array with the same values in Java. An array, in Java, is an object of a similar data type that will contain data elements in a.... Read More

Convert char to int in Java

By Subhojeet Ghosh

In this tutorial, we will learn how can we change char to int in Java. There are many ways by which we can convert or change char to int. Some of the approaches are as follows: (1).... Read More

Related Posts