Author Archives: Andrej Buday

Simple algorithm for casting strings to double

The article describes a method for converting incorrectly formatted numeric strings in CSV files into doubles by replacing commas with dots and handling various input errors, complemented by a Java util class implementation and tests. Continue reading

Posted in Solutions | Tagged , , , | Leave a comment

How to make multipart requests with file and object through autogenerated code defined in OpenAPI

This article explains how to create a Spring Boot endpoint using OpenAPI to receive objects and, optionally, files through multipart form data, focusing on deserialization and validation of incoming objects. Continue reading

Posted in Solutions | Tagged , , , , , , , , , , , , , | Leave a comment

How to make multipart requests with files through autogenerated code defined in OpenAPI

This article provides a clear tutorial on generating infrastructure code defined in OpenAPI schema for your custom Spring Boot application and handling multipart file uploads through an autogenerated REST endpoint. Continue reading

Posted in Solutions | Tagged , , , , , , | Leave a comment

How to compile and run Java files on Windows

There are several scenarios when you need to compile and run your Java code from the terminal or command prompt on Windows. Here is a tutorial on how to do it. Continue reading

Posted in Language basics | Tagged , | Leave a comment

Java concurrency interview conversation about passing shared variables to threads

During one interview, I talked with the interviewer about how Java handles Threads and passed references to threads and pitfalls of concurrency in general. Continue reading

Posted in Java Concurrency | Tagged , , | Leave a comment

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

How to figure out if a character in a string is a number

This article is about multiple ways to pull a character from a string and check if it is a number. Continue reading

Posted in Tips & tricks | Tagged , , , , , , | Leave a comment

Developer Notes 001

The list of a few developer notes collected during the software development which were not enough for a self-standing article. Continue reading

Posted in Tips & tricks | Tagged , , , , , , , , , , , | Leave a comment

How To Turn Number To String With Padded Space or Zeroes

Article about a simple solution to turning numbers into specific length String with padded space. Continue reading

Posted in Tips & tricks | 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