Java – Reader to String

2021 VietMX 0

In this quick tutorial we’re going to convert a Reader into a String using plain Java, Guava and the Apache Commons IO library. This article is part of the “Java […]

Java String to InputStream

2021 VietMX 0

1. Overview In this quick tutorial, we’re going to look at how to convert a standard String to an InputStream using plain Java, Guava, and the Apache Commons […]

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

Generate a String

2020 VietMX 0

zscoder wants to generate an input file for some programming competition problem. His input is a string consisting of n letters ‘a’. He is too lazy to write […]

String Set Queries

2020 VietMX 0

You should process m queries over a set D of strings. Each query is one of three kinds: Add a string s to the set D. It is guaranteed that the string s was […]