Archives for Java

Java

Developing a 15 Puzzle — Game of Fifteen in Java

The 15 Puzzle, also called Game of Fifteen, is a sliding puzzle that consists of a frame of numbered square tiles in random order with one tile missing. To solve the puzzle, the players must place the tiles in order by making sliding moves that use the empty space. In that tutorial, you are going to develop a 15 Puzzle…
Continue Reading
Articles

Creating a Rock Paper Scissors Game in Java with a Markov Chain for the AI

Rock Paper Scissors Lizard Spock Game is an extended version of the classical Rock Paper Scissors game first mentioned in the Season 2 of “Big Bang Theory” by Sheldon Cooper. As Sheldon Cooper explains, the rules of RPSLS are the following : “Scissors cuts paper, paper covers rock, rock crushes lizard, lizard poisons Spock, Spock smashes scissors, scissors decapitates lizard,…
Continue Reading
Articles

Discover the Java’s History from the Features side

Before Java emerged as the top programming language, C++ was the real deal and the top dominant language in the industry. By creating Java, the creators wanted to tackle most of the things that C++ offered while getting rid of some of the more tedious tasks that came with the earlier languages. With Java, they reached their goal ! In…
Continue Reading
Java

Generating Microsoft Excel XLSX files in Java

It’s always interesting to be able to generate Microsoft Excel XLSX files in an application to propose reports to users for example. In that tutorial, you are going to learn how to generate Microsoft Excel files in a Java application. For that, we are going to use the great Apache POI API available just there :  Note that you can watch…
Continue Reading
Java

Create your own Blockchain in 30 minutes

The Blockchain is a technological revolution at the heart of the success of Bitcoin and other crypto currencies. For some, the Blockchain is a revolution comparable to what the Internet was in its day. In this article, we propose you to create your own Blockchain in 30 minutes by using the Java programming language. It will allow you to better…
Continue Reading
Java

Parse and write JSON data in Java with Gson

Nowadays, JSON is the most widespread format to exchange data on the Web. REST Web Services use it. JSON is lighter than XML and lets to save bandwith when you consume this services. In Java, there is a great library named Gson that makes developers' life easier. Created by Google, Gson is open source and available on GitHub here : …
Continue Reading
Articles

The Ultimate Guide to Java 9

After some months of delays, Java 9 is coming ! Java 9 is attended for general availability On September, 2017. In that article, you’re going to discover the major new features of Java 9. Don’t hesitate to leave me some comments if I forgot some important things. Main Features Java Platform Module System – JSR 376 Process API Updates – JEP…
Continue Reading