Archives for 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…
Building A Backlink Checker In Java
SEO is essential when you want to give your website visibility on the Internet. Indeed, most visits to websites are derived from search engines. I use the plural here but in reality, it would be more like a single search engine. You all know this search engine: it’s Google. Google thus has more than 90% of the online search market…
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,…
Create a simple HTTP Web Server in Java
Java is one of the most used programming language in the World. The JDK comes with a lot of exciting features. In that video, we are going to use the ServerSocket and the Socket classes to create a simple HTTP Web Server in Java. In the first part of this tutorial, we create the constants for the Web Server (index…
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…
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…
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…
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 : …
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…
Learn to create a Snake game in Java 2D
Snake is a classic video game in which a player controls a Snake that must eat apples and avoid walls. Each time, you eat an apple, the Snake grows. The Snake's goal is to eat the maximum of apples. It's a game of kind infinite. Snake is also an ideal game to create when you want to learn to create 2D…