Java Programming Tutorials

Java programming tutorials with many code examples!

GCD in Clojure using Euclidean algorithm

In this post we’re going to implement calculation of Greatest Common Divisor GCD in Clojure using Euclidean algorithm for two and more numbers.

Read More

Share with the World!

Clojure REPL docs

In this post we show how to use look for useful information in Clojure REPL? You’ll learn how to find and display docs, loot at Clojure source code and display Javadocs.

Read More

Share with the World!

Clojure for loop

Clojure for loop

The for loop in Clojure looks quite different than in most common languages. Here we’re going to show how to do some crazy things with it and how it relates to Java versions.

Read More

Share with the World!

Clojure mock Java class

Clojure mock Java class

In this tutorial we’re going to show how to use Clojure proxy to mock Java classes and provide own functionality for methods.

Read More

Share with the World!

Clojure switch case

One of the first control flow statements in many programming languages is switch-case. In Clojure switch case can be achieved in different ways, which we will show in this post.

Read More

Share with the World!