Author: iba

  • Java XOR (Exclusive or) operator on Booleans

    In this tutorial, will show how to use a the Java XOR (exclusive or) operator on booleans, and we will discuss how the operator behaves with various combinations of boolean values. In Java, booleans can hold only two values, true and false. The XOR operator in Java ‘ ^ ‘ can be used with booleans…

  • Java BigDecimal, Dealing with high precision calculations

    In this tutorial, we will discuss how to use the Java BigDecimal class to deal with calculations that require a high degree of precision, such as when dealing with currency conversion, taxes or even high accuracy mathematical calculations. Why do we need the BigDecimal class In Java a floating point or a fractional number can…

  • ArithmeticException in Java – Causes & Treatment

    In this tutorial, we will introduce a few examples that would highlight the causes of getting an ArithmeticException thrown within a Java program. We will discuss the common causes of the exception, and how these could be treated. What is an ArithmeticException? An arithmetic exception is an error that is thrown when an invalid arithmetic…

  • Java ArrayIndexOutOfBoundsException – Causes & Fixes

    In this tutorial, we will discuss what a Java ArrayIndexOutOfBoundsException is, what causes it and how to make sure that you avoid it. What is an ArrayIndexOutOfBoundsException An array-index out of bounds exception is a Java exception thrown due to the fact that the program is trying to access an element at a position that…

  • Spring Boot and Docker example on Windows

    In this tutorial, we will discuss how to create a docker container from a Spring Boot application and how to run it in a Windows environment. Most of the tutorials I encountered related to creating Spring Boot containers were focused on Linux, so I thought I would share my experience creating docker containers of your…

  • Getting started with Reactive Programming and Reactor Core

    Before getting into this tutorial, I recommend that you read our “Understanding reactive programming in Java” post, as it will lay down the foundation to what we will do in this tutorial and will make things a lot easier to understand. In this post, we will go through a sequence of steps that will allow…

  • Understanding reactive programming in Java

    In this post, we will discuss the principles of reactive programming, which problems is it trying to solve and discuss the basics of reactive programming in Java. This tutorial will focus on the usage of reactive programming in Java but the principles and ideas discussed in this tutorial can apply to other programming languages. This…

  • Do laptop cooling pads really work?

    Laptop cooling pads are one of many cost effective methods you can use to improve the performance of your laptop. But how good are they? If you are considering to buy a laptop cooling pad, then I would recommend that you read this guide first in order to choose the best option for your laptop.…

  • How to cheaply improve your laptop’s performance

    Is your laptop running slow? Maybe it is outdated and needs an upgrade? In this post, we will discuss some ways that can improve your laptop’s performance and hopefully you can squeeze in a year or two of usability before needing to buy a new one. Identify the performance bottleneck Before you start performing upgrades on…

  • Recommended books for Java developers

    by

    in

    In this post we will discuss our list of recommended books that can get you started with Java and Java related topics. We will start this post with the most basic books, that will help you get up and running if you have a limited or no experience in programming. Later, we will move on…