What are the SOLID principles?Elnurshutterstock

What are the SOLID principles?

Code can deteriorate, especially when the SOLID principles of object-based programming are not adhered to. These principles represent the five golden rules for maintaining clean and better code. Thanks to their specific laws and guidelines, they enable an easily understandable…

Read more
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 execvp() in C and C++ra2 studioShutterstock

How to use execvp() in C and C++

Programs that need to run scripts or external commands can use execvp in a separate process. This is often the case for system administration tasks or automation scenarios. Complex tasks like pipelining or redirections can also be implemented. We’ll go over the syntax for the…

Read more
How to create and use a 2D array in C++

How to create and use a 2D array in C++

In C++, a 2D array is the simplest form of a multidimensional array. It’s essentially a table with rows and columns. They’re ideal for structured, two-dimensional data like matrices, chessboards and images. In this article, we’ll go over what a 2D array is, how it’s structured…

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 create and use 2D arrays in CChinnapongShutterstock

How to create and use 2D arrays in C

Nesting makes it possible to create and use 2D arrays in C. This principle can be applied to any number of dimensions, allowing you to create and manage data structures containing multiple dimensions. We’ll explain the basics of arrays and show you how to create 2D arrays in C…

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
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