Category: Java
-
Android HttpRequest class (version 2.1)
Version of of this class had some bugs so I corrected them and here is the latest version 🙂 Enjoy! package moz.http; import java.net.*; import java.io.*; import java.util.ArrayList; import java.util.Enumeration; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.Map.Entry; import org.apache.http.client.HttpClient; import org.apache.commons.*; import android.util.Log; /** * HTTP Request class * *…
-
Java 101 – Lesson 4 – Variables
We know how to compile and run a basic Java application. We also know the basic structure of code for Java. If you don’t know what I am talking about, please refer to the previous articles in the Java 101 series (lessons 1, 2 and 3). In this article, we will take a look at…
-
Java 101 – Lesson 3 – Dissecting Hello World
This article is a continuation of articles in the series of Java 101. You will need to read lesson 1 and lesson 2 to completely understand this article (or blog post, or whatever you want to call it). In lesson 2, we executed a piece of code, which printed “Hello World” on the command prompt…
-
Java 101 – Lesson 2 – Getting familiar with Java
I’ve never been too fond of books when trying to learn a language for the first time. The reason is that they give you too many details in the beginning that you may not necessarily be interested in until later on. The approach that I’ve found to be very useful in learning or teaching is…
-
Java 101 – Lesson 1 – Installing the JDK
Since this is the first class, I guess I should talk about what Java is. Java is a language that can be used to write platform-independent desktop applications or web applications. The term “Platform independent” means that you can write the code for an application on Windows and run it in Linux or a Mac…