Java

System.exit() in java

System.exit() in Java

The System.exit() method terminates the Java virtual machine. This method takes an argument, which is the status code passed to the caller. A status code of zero signifies a normal exit whereas a status code….

Set to List in Java

How to Convert Set to List in Java

Lists in Java are ordered collection of data, whereas sets are an unordered collection of data. A list can have duplicate entries, a set can not. Both the data structures are useful in different scenarios…..

Pair Class in Java

What is a Pair Class in Java?

Java Pair class stores two values in the form of a tuple. This can be useful to get a function to return two values. Java has an inbuilt Pair class from Java 8 onwards. That….

MERGELISTS IN JAVA

How to Merge Two Lists in Java?

Merging two lists in Java is often a useful operation. These lists can be ArrayLists or LinkedLists. How to Merge Two Lists in Java There are multiple ways we can merge two lists in Java…..

Java replaceAll() statement

Java String replaceAll() Method

Java String replaceAll() replaces all the occurrences of a particular character, string or a regular expression in the string. The method returns a new string as its output. The method requires two parameters. String replaceAll()….

how to find system properties in Java

How to Get System Properties in Java?

The System class in Java maintains a set of properties. These properties are stored in the form of key/value pairs. Both keys and values are Strings that define traits or attributes of the current working environment. There….

+= Operator In Java

What is += Addition Assignment Operator in Java?

It’s the Addition assignment operator. Let’s understand the += operator in Java and learn to use it for our day to day programming. x += y in Java is the same as x = x….

Fxgl Game Development

Building a Space Rangers Game with Java FXGL

In this simple FXGL tutorial, we will develop a game called “Space Ranger”. What is FXGL? FXGL is a game engine built on top JavaFX, which is a GUI toolkit for desktop, mobile, and embedded….

Java 14 Records Class

Java 14 Records Class

Java 14 introduced a new way to create classes called Records. In this tutorial, we will learn: Why do we need Java Records How to create Records and use it Overriding and extending Records classes….

Install Java 14 Linux

How to Install Java 14 on Linux, Ubuntu, CentOS

Java 14 is released on March 2020. In this tutorial, we will learn how to Install Java 14 on Linux. We will learn two ways to install Java on Linux. Using Package Manager – apt….

close
Generic selectors
Exact matches only
Search in title
Search in content
Search in posts
Search in pages