JIYIK CN >

Current Location:Home > Learning > PROGRAM >

All

Increasing the heap space in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

In Java, the heap space is mainly used for garbage collection and allocating memory for objects. A default heap space is allocated when JVM is installed on our machine, but it may be different. The following points show how we can increase...

Full

Implementing a Min Heap in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

A min heap is a heap in which every internal node is less than or equal to the value of its child nodes. We will see in the following points how to implement a min heap with and without using a library. Minimal heap implementation in Java w...

Full

Implementing a min-max heap in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

In this article, we will implement a max heap and a min heap using PriorityQueue the class. We will also demonstrate inserting and removing elements from the heap. Introduction to Min-Max Heap in Java Heap is a tree-based data structure, wh...

Full

Calendar date in YYYY-MM-DD format in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

Java Date encapsulates the current time and date. The Date class does this with the help of two constructors - Date() and Date(long millisec) constructor. We use Date() the constructor to initialize the object with the current time and date...

Full

Java Change Date Format

Publish Date:2025/04/14 Author:JIYIK Category:Java

There are various options available for converting date string to date format. The methods mentioned below can bring the desired result. Let us understand the various ways from the following code block. import java.text.ParseException ; imp...

Full

console.log in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This tutorial explains the function in Java console.log() and how to display logs to the console in Java. console.log() is a function in JavaScript that is used to display log messages to the browser console. There is no such message in Jav...

Full

How to clear the console in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

In this tutorial, we will look at two ways to clear the console screen in Java. We will learn how to execute Java clear screen commands at runtime through examples. Clearing the console using ANSI escape codes in Java We can use special cod...

Full

Class file editor in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

In this article, we will discuss Java Class File Editor, a tool created in Java to edit Java compiled classes. We can decompile Java classes after creating them and view them, but we need a tool like Java Class File Editor to modify them. F...

Full

Class fields and instance fields in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

In this article, you will learn the basic terminology of Java programming language such as local variables, input parameters, class fields, and instance fields in Java. Local variables in Java Variables whose scope is bound to a block, meth...

Full

Difference between hashmap and map in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This tutorial explains the key differences between Map and in Java HashMap . In Java, Map is an interface for storing data in key-value pairs, and HashMap is Map an implementation class of the interface. Java has several classes ( TreeHashM...

Full

Updating Hashmap Values in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This article explains how to use the two methods contained in the HashMap class in Java - update put() and replace() update the values ​​in a HashMap. hashmap.put() Update the value in Hashmap in Java using When we want to HashMap inser...

Full

How to Print a HashMap in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This tutorial explains how to print HashMap an element in Java and also provides some sample code to understand the topic. HashMap It is Map an implementation class of the interface and is used to collect elements into key and value pairs....

Full

How to sort a Map by value in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This tutorial explains how to Mapkey, value sort pairs by value in Java and lists some sample codes to understand it. There are several ways to Map sort . Here we use sort() the , sorted() method, and Comparator interface. Let's look at an...

Full

How to Convert Hashmap to JSON Object in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This article explains how to convert a Hashmap to a JSON object in Java. We will see a detailed example of creating a hashmap and then converting it to a JSON object. Hashmap and JSON are both very commonly used by developers as they help u...

Full

How to delay for a few seconds in Java

Publish Date:2025/04/14 Author:JIYIK Category:Java

This tutorial explains how to create program delays in Java and gives some sample code to understand it. There are several ways to create a time delay, such as TimeUnit.sleep() ,, ScheduleAtFixedRate() etc. Thread.sleep() Let's look at an e...

Full

Scan to Read All Tech Tutorials

Social Media
  • https://www.github.com/onmpw
  • qq:1244347461

Hottest

Tags

Scan the Code
Easier Access Tutorial