Java InputStream to String

2021 VietMX 0

1. Overview In this tutorial, we’ll look at how to convert an InputStream to a String. We’ll start by using plain Java, including Java8/9 solutions, then look into […]

Convert char to String in Java

2021 VietMX 0

1. Introduction Converting char to String instances is a very common operation. In this article, we will show multiple ways of tackling this situation. 2. String.valueOf() The String class has a […]

Java String Conversions

2021 VietMX 0

1. Overview In this quick article, we’ll explore some simple conversions of String objects to different data types supported in Java. 2. Converting String to int or Integer If we need to […]

StringBuilder vs StringBuffer in Java

2021 VietMX 0

1. Overview In this short article, we’re going to look at similarities and differences between StringBuilder and StringBuffer in Java. Simply put, StringBuilder was introduced in Java 1.5 as a replacement […]