Log Unexpected Switch Options

There are many things a Java developer can do to make his or her own life and the lives of others maintaining that code easier. In this post, I’m going to look at a very easy approach a developer can take to make things easier for everyone. The point of this post will likely seem obvious to everyone reading it, ...

Read More »

Split as stream

I am preparing a regular expression tutorial update for the company I work for. The original tutorial was created in 2012 and Java has changed a wee bit since then. There are new Java language releases and though the regular expression handling is still not perfect in Java (nb. it still uses non-deterministic FSA) there are some new features. I ...

Read More »

Android Studio 3.0 – Initial Impressions of Tool Support

I have been using Android Studio 3.0 since since the alpha versions, and it is good to see it finally released. This is just some initial comments on using some common and new Android tools and libraries with the 3.0 version of Android Studio and the associated Android Gradle plugin. Hopefully this will be useful for anyone thinking of upgrading ...

Read More »

JUnit 5 meets AssertJ

JUnit 5 brings a lot of improvements in the assertions library, mainly thanks to Java 8 and Lambda Expression support and thanks to the presence of the new assertions like assertAll, assertTimeout orassertThrows. Although I really like JUnit 5 I believe that AssertJ is still a must in production grade unit tests and I will continue using it. But I ...

Read More »

Beating the GAS clock: Say Hello to MemsheetApp!

Google’s Apps Script framework is really awesome as it helps—newbies and experts alike—to leverage the power of Google (as well as external) services for their day-to-day gimmicks—and sometimes even for enterprise-level integration. SpreadsheetApp is one of its best-known features, which allows one to create and manage Google spreadsheet documents via simple JS calls. As simple as it may seem, misuse ...

Read More »

Simple String Representation of Java Decimal Numbers without Scientific Notation

The primary types/objects used for decimal numbers in Java are float/Float, double/Double, and BigDecimal. Each of these has cases in which its “default” string representation is “computerized scientific notation.” This post demonstrates some simple approaches to provide a string representation of the decimal number in these cases without scientific notation. Examples in this post will demonstrate the “default” scientific notation ...

Read More »

Spring boot and Apache Camel

As the world of software moves on, more complex systems are being developed, which have to integrate with each other. It started with SOA and it continues with microservices. Camel is the number one integration tool that comes to my mind since nowadays spring boot with camel is a very strong combination.               The ...

Read More »

Using Micrometer with Spring Boot 2

spring-interview-questions-answers

This is a very quick introduction to using the excellent Micrometer library to instrument a Spring Boot 2 based application and recording the metrics in Prometheus Introduction Micrometer provides a Java based facade over the client libraries that the different monitoring tools provide. As an example consider Prometheus, if I were to integrate my Java application with Prometheus, I would have used ...

Read More »

Exclusive Book Offers (75% off): Big Data Analytics with Java, Scala and Spark for Big Data Analytics, Big Data Visualization

Hello fellow Geeks! Today, we have some exciting news for you! Java Code Geeks and Packt have teamed up to offer you weekly discounts on their extensive library of books. This week, we are offering discounts on three books to help you understand and master Clojure. Check them out! Big Data Analytics with Java By Rajat Mehta This book covers ...

Read More »