Java

How to use the OR operator and the AND operator in Java

How to use the OR operator and the AND operator in Java

Java’s AND and OR operators are important tools in the language’s arsenal. AND is used to evaluate whether two conditions are fulfilled. OR checks whether at least one condition is fulfilled. We explain how the two functions are used, what their syntax looks like and what the…

Read more
How to compare strings in Java

How to compare strings in Java

You have various options in Java for comparing strings with each other. The Java equals() method is particularly recommended, but Java compareTo() is also very suitable for strings. In this dedicated article, we explain how the two methods work and also show you in which cases…

Read more
How to use Java primitivessdecoretshutterstock

How to use Java primitives

In Java, there are 8 primitive data types: boolean, byte, char, double, float, int, long and short. In this article, we’ll show you how the Java primitives are used, what their function is and which ones you should use for which purposes. We also give practical code examples so…

Read more
How to install Nextcloud on Ubuntu 22.04ESB Professionalshutterstock

How to install Nextcloud on Ubuntu 22.04

To install Nextcloud on Ubuntu 22.04, you can carry out most of the necessary steps via the command line. In addition to the installation, it’s possible to set up an administrator and SSL certificate. The prerequisite is that your system is up to date. We’ll guide you through the…

Read more
How to split strings in Javara2 studioShutterstock

How to split strings in Java

In Java, you can separate a string into several different substrings. The best method for splitting strings in Java is split(). The method has two parameters and some other particularities that you should be aware of. In this article, we explain everything you need to know about…

Read more
How to use the Java substring method

How to use the Java substring method

If you want to extract a substring from a string, you have various options available to you. Probably the most effective method is Java’s substring(). In our dedicated article, we explain how this method works and show you its two variants with and without endIndex using some…

Read more
How to use Java strings

How to use Java strings

One of the most important datatypes in Java are strings. Java strings are used to represent sequences of characters and digits. Once you’ve created a string, it is immutable and cannot be changed. In this tutorial, we show you the syntax for strings in Java, how they work and…

Read more
How to use Java variablesREDPIXEL.PLShutterstock

How to use Java variables

Java variables can store different data types and are an elementary part of the programming language. In this tutorial, we explain how to declare and initialize Java variables, what the different variable types are and how variables work with different data types. We also show a…

Read more
How to use Java’s StringBuilder

How to use Java’s StringBuilder

As conventional strings cannot be subsequently changed without creating a new object, an alternative can often come in handy. Java StringBuilder allows you to manipulate the stored string using various methods. In our article, you can find out how the class works, what…

Read more
How to use Java booleans

How to use Java booleans

Java booleans are an important component of many programing commands. They’re used when an answer can only have two possible values. When used in combination with other code, they can determine when to execute or terminate an action. In this tutorial, we’ll explain what Java…

Read more
We use cookies on our website to provide you with the best possible user experience. By continuing to use our website or services, you agree to their use. More Information.
Page top