Tag archives for Java

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
Android

Create your first JNI Application on Android with the NDK

Like you must know, Java is the default programming language to make applications on Android. However, Java is not always the best solution for making fast apps, especially if you want to make games. A lot of games’ engines are made directly with C/C++. To let developers to make optimized part of codes in C/C++, Google offers the Android Native…
Continue Reading
Java

Create your first JavaFX 8 Application with Eclipse

Directly integrated in the JDK of Java 8, JavaFX is the new recommended way to create and deliver desktop applications and rich internet applications (RIA) in Java. JavaFX must replace Swing as the standard GUI library for Java SE. However, both technologies will continue to be integrated in the JDK. You can have a preview of the JavaFX Architecture in…
Continue Reading
Java

Calculate shortest paths in Java by implementing Dijkstra’s Algorithm

Conceived by Edsger W. Dijsktra in 1956 and published three years later, Dijkstra’s algorithm is a one of the most known algorithms for finding the shortest paths between nodes in a graph. This algorithm is applied in a lot of domains. For example, once you have represented road networks in a graph, it becomes easy to calculate shortest paths inside…
Continue Reading
Android

Jury rules in Google’s favor over Oracle : Android makes “fair use” of Java APIs

At the end of a two-week trial, a federal jury concluded that Android, the Google’s Mobile Operating System, makes "fair use" of Java APIs. Android doesn’t infringe Oracle-owned copyrights. Indeed, the Google’s re-implementation of 37 Java APIs is protected by "fair use" doctrine. After three days of deliberations, the jury unanimously answered "yes" in Google’s favor to the following question…
Continue Reading
Java

Learn to make a MVC application with Swing and Java 8

The Model-View-Controller is a well known software architectural pattern ideal to implement user interfaces on computers by dividing an application intro three interconnected parts. Main goal of Model-View-Controller, also known as MVC, is to separate internal representations of an application from the ways information are presented to the user. Initially, MVC was designed for desktop GUI applications but it’s quickly…
Continue Reading
Java

Implement the Adapter Design Pattern in Java

In software engineering, a design pattern is a general reusable solution to a commonly occurring problem with a given context in software design. In that new serie of articles, you're going to discover how to implement some of the most known design patterns in Java. To start the serie, you're going to study the Adapter Design Pattern. The Adapter Design…
Continue Reading