Category Archives: Guava

Create text file in Java with contents

Creating a text file (with given contents) is pretty straightforward task in Java. Recent Java versions and popular libraries like Apache Commons or Guava make this task even easier than it used to be. Below are some ways how to … Continue reading

Posted in Guava, Java | Tagged | Leave a comment

Iterating through Java list backwards

The most natural method of iterating through a list in Java is to start from the first element of the list and then move forward until the last one is reached. While this is the most common, it is sometimes … Continue reading

Posted in Guava, Java | Tagged , | 1 Comment