Java

Image: How to use the OR operator and the AND operator in JavaGaudiLabShut­ter­stock

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 con­di­tions 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
Image: How to compare strings in JavaGaudiLabShut­ter­stock

How to compare strings in Java

You have various options in Java for comparing strings with each other. The Java equals() method is par­tic­u­lar­ly rec­om­mend­ed, 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
Image: How to use Java primitivessdecoretshut­ter­stock

How to use Java prim­i­tives

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 prim­i­tives are used, what their function is and which ones you should use for which purposes. We also give practical code examples so…

Read more
Image: How to install Nextcloud on Ubuntu 22.04ESB Pro­fes­sion­alshut­ter­stock

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 in­stal­la­tion, it’s possible to set up an ad­min­is­tra­tor and SSL cer­tifi­cate. The pre­req­ui­site is that your system is up to date. We’ll guide you through the…

Read more
Image: How to split strings in Javara2 studioShut­ter­stock

How to split strings in Java

In Java, you can separate a string into several different sub­strings. The best method for splitting strings in Java is split(). The method has two pa­ra­me­ters and some other par­tic­u­lar­i­ties that you should be aware of. In this article, we explain every­thing you need to know about…

Read more
Image: How to use the Java substring methodGaudiLabShut­ter­stock

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
Image: How to use Java stringsiJeabShut­ter­stock

How to use Java strings

One of the most important datatypes in Java are strings. Java strings are used to represent sequences of char­ac­ters 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
Image: How to use Java variablesREDPIXEL.PLShut­ter­stock

How to use Java variables

Java variables can store different data types and are an el­e­men­tary part of the pro­gram­ming language. In this tutorial, we explain how to declare and ini­tial­ize Java variables, what the different variable types are and how variables work with different data types. We also show a…

Read more
Image: How to use Java’s StringBuilderra2 studioShut­ter­stock

How to use Java’s String­Builder

As con­ven­tion­al strings cannot be sub­se­quent­ly changed without creating a new object, an al­ter­na­tive can often come in handy. Java String­Builder allows you to ma­nip­u­late the stored string using various methods. In our article, you can find out how the class works, what…

Read more
Image: How to use Java booleansG-Stock Studioshut­ter­stock

How to use Java booleans

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

Read more