Java – How-Tos and Tutorials

Convert int to String Java fastest method - feature image

How to convert int to String in Java – the fastest way

In this article, I show you how to convert an int into a String in Java the fastest way. The answer is probably surprising for some. I present four variants and measure and compare their speed using JMH microbenchmarks. I analyze the measurement results looking at the Java source code and also the generated bytecode.

Read More »
Monorepos - advantages and disadvantages - feature image

Monorepos – advantages and disadvantages

Originally I wanted to publish the third part of my article series about Static Code Analysis today. However, this part will be more extensive than the first two parts so that I couldn’t finish it in two weeks. Today I would like to share my experience with Git monorepos with you. There are many articles

Read More »
Write better code with static code analysis - feature image

How to write better code with Static Code Analyzers

Many years ago, when I thought – inexperienced and naive as I was – that I was a much better programmer than I was back then, someone asked me: “Sven, how many lines of code has your longest method?” Neither did I know the answer to the question, nor did I understand its background. Today

Read More »
How to write quality code and enforce Java code standards - feature image

How to write quality code and enforce Java code standards

Today is my last working day at AndroidPIT. After building AndroidPIT and developing it for ten years, a few months ago, I decided to start my own business as a freelance programmer to gain new experiences. After programming alone for a few months back in 2009, we started hiring additional programmers shortly after that. Working

Read More »
How to switch Java versions in Windows - feature image

How to switch Java versions in Windows

As a Java programmer, I work on various projects based on different Java versions, especially since the transition to the six-month release cycle. From time to time, I also have a piece of Java code that I want to try out on different Java versions – on the command line without having to click through

Read More »