Category Archives: Language basics

How to convert a Map to an Array in Java

This tutorial is about several approaches to converting Java’s Map interface implementations into the Java array. Continue reading

Posted in Language basics | Tagged , , , , , , , | Leave a comment

How to initialize an array with zero values in Java

This article will look at how to fill up Java array with default values effectively on an array creation. Continue reading

Posted in Language basics | Tagged , , , | Leave a comment

Bit manipulation operators in Java

Java offers a possibility for bit manipulation with bit operators in its code. This article will go through all the operators with real-life examples and explanation. Continue reading

Posted in Language basics | Tagged , , | 1 Comment

How to show first n characters in JavaScript or TypeScript string

This article will show you three different ways how to obtain substring from a string in JavaScript or TypeScript Continue reading

Posted in Language basics | Tagged , , , | Leave a comment

How to use IntStream range in Java

This article talks about the average use case of loop count variable usage via IntStream API Continue reading

Posted in Language basics | Tagged , , , , | Leave a comment

Convert varchar to text in PostgreSQL

This article will show you a simple way how to convert VARCHAR data type to TEXT data type. Continue reading

Posted in Language basics | Tagged , , | Leave a comment

How to create a file in a different directory in PHP

How to make this file in another folder than the execution file location? This article will help you with a small snippet of code to create a file in a different folder. Continue reading

Posted in Language basics | Tagged , | Leave a comment

How to loop over HashMap in Java

HashMap is one of the most used data collection. There are several ways how to loop over it and get what you need. We will show five different ways how to loop over HashMap. So what is the┬ábest way to … Continue reading

Posted in Language basics | Tagged | Leave a comment

Python String split() Method

From time to time, you will find yourself trying to get a list of things from a string. For this purpose, you can use the split() function.

Posted in Language basics | Tagged | Leave a comment

How to concatenate or append strings in Python

If you are looking for answer how to append strings in Python, you are on the right page.

Posted in Language basics | Tagged | Leave a comment