JIYIK CN >

Current Location:Home > Learning > PROGRAM > Java >

All

>> operator in Java

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

This guide will introduce you to the operator in Java . To understand this concept, you need to be familiar with some lower-level computing concepts. For example, bits, bytes, etc. Let's take a deeper look. Operators in Java In Java, the op...

Full

Arrow operator in Java ->

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

This tutorial explains - the role of the arrow operator ( ) in Java and lists some sample code to understand the topic. In Java 8, a new feature lambda expression was added, and the arrow operator appeared in Java to form lambda expressions...

Full

Compile multiple Java files with a single command in Java

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

This tutorial explains how to compile multiple java files using a single command in Java. Compilation is a term used to refer to the process of converting java source code into bytecode using JDK. To execute any Java file, we need to follow...

Full

How to compare characters for equality in Java

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

This tutorial shows you how to check if two characters are equal in Java. In Java, we can use the equals( == ) operator or the Character compare() equals() method of the Character class to compare two characters. If you are working with pri...

Full

Mutex Locks in Java

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

In the field of computer science, mutual exclusion or mutex is known as the property of concurrency control. Every computer uses a minimum sequence of program instructions called a thread. At a time, the computer works on one thread. For be...

Full

Difference between size and length in Java

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

This tutorial explains the difference between size and length in Java. We have also listed some sample codes to help you understand the topic. Java has a size() method and a length property. Beginners may think that they are interchangeable...

Full

Get user home directory in Java

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

This tutorial explains how to get the user's home directory in Java and lists some sample code to guide you through the topic. For a multi-user operating system, each user has a file system directory; this directory is called the user's hom...

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

Switching on enumeration types in Java

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

This article explains how to use enum in Java . We will use statement switch with enum in two ways . switch In Java, we use traditional switch and case to perform enumeration operations. switch In this example, we SwitchEnum create an enume...

Full

Scan to Read All Tech Tutorials

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

Hottest

Tags

Scan the Code
Easier Access Tutorial