How to Convert InputStream to String in Java

Very frequent situation: you have java.io.InputStream and you need to convert it in some way into a String. There are several approaches to achieve this in Java, I'll show you the best...

Java Optional – No More NullPointerException In Your Code

When writing code, the developer often can not know whether the necessary object will exist at the program execution time or not, and in such cases it is necessary to do...

Java Scanner Example – Reading Input from Console

The java.util.Scanner class used for scanning text. java.util.Scanner parses primitive types and strings using regular expressions. Here what you should know about Java Scanner: Scanner breaks the input into...

Simple Java Spring Boot Application with DynamoDB

Today we’ll build a simple Spring Boot Application and integrate it with DynamoDB. We’ll configure our Spring Boot application to use a local DynamoDB instance using Spring Data. We’ll create an example...

Java Spring Scopes Explained

Java Spring framework has several different bean scopes. Today I'll explain the meaning of each Spring beanscope. The scope of a bean defines the life cycle and visibility of that bean in...

Creating and Running Your First Chef Cookbook

Chef is a configuration management tool written in Ruby. Chef is used to streamline the task of configuring and maintaining a company's servers. Chef can be easily integrated with cloud-based platforms such...