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 […]

Format ZonedDateTime to String

2021 VietMX 0

1. Overview In this quick tutorial, we’ll see how to convert a ZonedDateTime to a String. We’ll also look at how to parse a ZonedDateTime from a String. 2. Creating a ZonedDateTime […]

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 […]

CharSequence vs. String in Java

2021 VietMX 0

1. Introduction Simply put, CharSequence and String are two different fundamental concepts in Java. In this quick article, we’re going to have a look at the differences between these […]

Split a String in Java

2021 VietMX 0

1. Introduction Splitting Strings is a very frequent operation; this quick tutorial is focused on some of the API we can use to do this simply in […]