Archives for Java - Page 2

Android

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…
Continue Reading
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. 1. Create…
Continue Reading
Java

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…
Continue Reading
Android

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…
Continue Reading
Java

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…
Continue Reading
Articles

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…
Continue Reading
Java

Learn how to make a Swing painting and drawing application

In this video tutorial, you're going to learn how to create a Swing painting and drawing application. Main goal is to learn how to draw in 2D in Java Swing component. Tutorial has a Youtube live coding video and also some explanations here with source code. Don't hesitate to give me your feedbacks and comments.   Video is here :…
Continue Reading
12