Google Guava is very similar to Apache Commons; it is a set of utilities that extend the standard Java API and make life easier. But unlike Apache Commons, Google Guava is one library that covers many areas at once, including collections and I/O.
To include it in a project, use dependency:
<dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>19.0</version> </dependency>
We will start with the Guava I/O module. To give an illustration, we will use some generated data. We already used the word class, which contains a token and its part-of-speech tag, and here we will generate more words. To do that, we can use a data generation tool such as http://www.generatedata.com/. Let's define the ...