In the previous article, I showed you that “” + i is the fastest way to convert an int into a String in Java. All the way from Java 7 to Java 14. Today you will learn what to consider in the opposite direction, i.e., when parsing a String to an int. You can find
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.
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
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
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
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