Archives for Java - Page 3

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