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 use Java primitivessdecoretshut­ter­stock

How to use Java prim­it­ives

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­it­ives 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­stall­a­tion, it’s possible to set up an ad­min­is­trat­or and SSL cer­ti­fic­ate. The pre­requis­ite 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 para­met­ers and some other par­tic­u­lar­it­ies that you should be aware of. In this article, we explain everything 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 ele­ment­ary part of the pro­gram­ming language. In this tutorial, we explain how to declare and ini­tial­ise 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­Build­er

As con­ven­tion­al strings cannot be sub­sequently changed without creating a new object, an al­tern­at­ive can often come in handy. Java String­Build­er 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­bin­a­tion with other code, they can determine when to execute or terminate an action. In this tutorial, we’ll explain what Java…

Read more
Image: How does the Java do-while loop work?GaudiLabShut­ter­stock

How does the Java do-while loop work?

Java’s do-while loop offers a practical method for executing in­struc­tions several times. A ter­min­a­tion condition is used to determine how many re­pe­ti­tions should take place. If the limit is reached, the program exits the loop im­me­di­ately. Otherwise, the actions will continue to…

Read more