Programming for fun and profit

Programming tutorials, problems, solutions. Always with code.

Bash for loop

Problem:

In Bash you can use for loop to iterate over a number of things. This tutorial shows how to use two Bash for loops in a simple way!

Read More

Share with the World!

Gradle Java version

Gradle is using default Java version when compiling source code and producing bytecode. How to tell Gradle version of Java source code and expected version of bytecode?

Read More

Share with the World!

Java 8 create temporary file

Problem:

How to create a temporary file in Java 8?

Sometimes it’s needed to create a temporary file during tests, verify result, and then delete it at the end. As usual it can be easily done using Java 8 Files API.

Read More

Share with the World!