Tag archives for Java - Page 3
Discover 50 years of “Hello World !” through programming languages
You wanna learn more about the history of the programming languages ? Or may be you just want have fun by discovering 50 years of "Hello World !" through the ages and the programming languages. In all cases, you should enjoy the following video that lets you to discover that : And you ? What is your favorite programming language…
Discover Top 5 new features expected in Java 9
Java 8 has been released in 2014 and can be considered as a major version for Java Platform with introduction of Lambdas and Streams for example. But, one essential feature was missing ! Modular system, aka Jigsaw, has been postponed to Java 9. Originally planned for 2016, Java 9 has been reported to March 2017. It will be 3 years…
Google is thinking to add Swift support on Android ? Don’t forget Kotlin !
Since Swift has been open sourced, it has received a lot of interests from individual developers or giant brands like Google, Facebook or Uber. Now, some sources reported that Google is considering making Swift a « first class » language for Android. Currently, Google’s Android operating system supports Java as its « first class » language but because of litigations with Oracle, Google could…
Oracle claims $9.3 billion damages from Google for use of Java API in Android
Latest twist in the Oracle / Google battle around Android, Oracle now claims $ billion damages from Google for use of Java API in Android. Oracle sued Google six years ago, claiming that Google needs a license to use Java API in Android that is become the market-leading mobile OS. Crucial question is to know if Google’s use of Java…
Learn to create a Tetris game in Java with Swing
Released in 1984, Tetris is a Russian tile-matching puzzle video game originally designed and programmed by Alexey Pajitnov. Tetris is based on usage of Tetrominoes. Where as we are in 2016, Tetris stays the most known game of history. In the following article, we're going to create a Tetris game in Java with Swing and Java 2D API. Programming Tip…
Easiest way to create a built-in Java HTTP Server
Introduced in JDK , package enables implementation of embedded HTTP servers. Oracle official Javadoc tells the following : "Provides a simple high-level HTTP server API, which can be used to build embedded HTTP servers". However, it’s important to consider that * packages are not part of the supported, public interface and may even disappear in upcoming Java releases. There is…
Learn how to parse JSON in Android with Gson
Previously you had learnt to consume a REST Web Service in JSON and parse result to display data in an Android application. To start from basics, I show you raw method that uses only standard SDK and no third-party libraries. I think it's better when you begin to understand how things work. Now, you know raw method so we can…
How to generate a Random alpha-numeric String ?
When you develop some applications in Java or on Android platform, you can sometimes need to generate a random alpha-numeric String to generate a session id, a unique temporary id or simply to generate sample string data. Use cases are multiples and to make that there are a lot of possibilities. In the following of this tutorial, we’re going to…
Is Java pass parameters by value or by reference ?
Today, we go back to the basics and we’re going to understand to a simple but sometimes hard to answer for some developers. Are Java parameters passed by value or by reference ? Before to answer, it seems important to define what is the difference between these two kinds of methods to pass arguments in methods. From Wikipedia, we get the…
What is a Java Bean and a Java POJO ?
As a Java developer, you are surely used to read these terms in Java articles or blogs. Often, authors speak you about Java Bean or POJO (Plain Old Java Objects). But, some developers don’t know really what is behind these acronyms. To be clear, this is the definition for both terms. POJO The term of POJO has been used the…