Category Archives: Language basics

7 different ways how to get NumberFormatException in Java

This article will show you the NumberFormatException, how you are getting it and what you should do to handle the exception properly. Continue reading

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

Flattening Stream Collections in Java

This article is about flattening the list of element list with use of Java 8 stream feature flatMap and forEach Continue reading

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

What does the double star operator mean in Python?

In some Python code, you might spot double stars standing next to each other. What do those two stars mean, and what is their job? We will answer all the questions in this article. Continue reading

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

How to join List String elements with a comma

In this article, we will see three different ways to print string elements of the list into one coherent text. Continue reading

Posted in Language basics | Tagged , | Leave a comment

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

Simple Scala Methods for finding Sum and Maximum

Simple article about two different ways how to find a sum and maximum of elements in a list Continue reading

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