Author image

Luka Čupić

6 Posts Croatia

Formatting Strings in Java

Introduction

There are multiple ways of formatting Strings in Java. Some of them are old-school and borrowed directly from old classics (such as printf from C) while others are more in the spirit of object-oriented programming, such as the MessageFormat class.

In this article, we'll gloss over several of these

Continue Reading

Factory Method Design Pattern in Java

Introduction

Design patterns are a collection of programming methodologies used in day-to-day programming. They represent solutions to some commonly occurring problems in the programming industry, which have intuitive solutions.

Sooner or later, a desktop program, mobile app, or some other type of software will inevitably become complex and start exhibiting

Continue Reading

Guide to Using Optional in Java 8

Introduction

When writing any kind of code in Java, developers tend to work with objects more often than with primitive values (int, boolean, etc). This is because objects are at the very essence of object-oriented programming: they allow a programmer to write abstract code in a clean and structured manner.

Continue Reading