Year: 2024

Last Updated on November 14, 2024 by jt Support for Structured Logging is a new Spring Boot feature introduced with the Spring Boot 3.4.0 release. Structured Logging is fairly common to use in distributed environments where you are using some type of consolidated logging. Typically, you will use a JSON log format to allow for […]Continue reading

Last Updated on October 28, 2024 by jt Converting a String to char is a common task in Java. Java provides several ways to achieve this. In this blog post, we’ll cover the primary methods and highlight when to use each one. String to char Using charAt() Method The most common way to convert a […]Continue reading

Last Updated on October 26, 2024 by jt The if else statement is a fundamental control structures in Java.. This structure evaluates conditions and executes code based on whether those conditions are true or false. Let’s look at how to use if, if else, and else if statements effectively. The Java if Statement An if […]Continue reading

Last Updated on October 25, 2024 by jt The substring() method in Java is a tool for manipulating strings. It allows you to extract a portion of a string by specifying a start index, and optionally, an end index. Basic Usage of substring() The Java substring() method has two variations: In this example: Important Details […]Continue reading

Last Updated on October 22, 2024 by jt Converting an int to a String is a common task in Java, especially when working with user interfaces, file output, or JSON formatting. Java provides several ways to perform this conversion, each with different use cases and characteristics. In this blog post, I will cover the most […]Continue reading

Last Updated on October 22, 2024 by jt String to int conversions are a common task in Java, especially when dealing with user input or API calls. Java provides several ways to perform this conversion. This blog post will cover the most common methods for converting a String to an Integer and cover best practices […]Continue reading

Last Updated on October 22, 2024 by jt Introduction As a Java developer, a common task you’ll encounter is converting between Java objects and JSON. The Jackson library is a powerful and widely used tool for this purpose. Whether you’re building RESTful APIs, microservices, or simply handling JSON data in your application, Jackson’s ObjectMapper class […]Continue reading

This tutorial covers the Java XOR operator, represented by the ^ symbol, which operates on boolean and integer types. It explains how XOR functions as a logical operator for booleans, returning true for different values, and performs a bitwise operation for integers, illustrating with examples and truth tables.

Last Updated on October 20, 2024 by jt What are Structured Outputs? Using Structured Outputs is an important aspect when interacting with LLMs programmatically. LLMs, by their nature, generate unstructured output. The unstructured output does not work well with programming languages which need structure to understand the data. Through prompting techniques, you can direct the […]Continue reading