BASIC / NOTES</>↗Basic04 Oct 2006
At the time you decided to start to learn Java Programming you can start by downloading the Java Development Kit (JDK) from Java Download website. There are three different types of JDK, the Java SE (Java Standard Edition), Java EE (Java Enterprise Edition), Java ME (Java Mobile Edition). From the website you can also download […]
JDBC / NOTES</>↗JDBC03 Oct 2006
In this example we are showing you how to delete a record from table in the database. We use a standard JDBC library for this purpose. For the database we use MySQL, you can use any type of database you want. All you need to do is to find the JDBC driver for the database […]
CORE API / NOTES</>↗Core API30 Sep 2006
Below is an example code that reverse a string. In this example we use StringBuffer.reverse() method to reverse a string. In Java 1.5, a new class called StringBuilder also has a reverse() method that do just the same, one of the difference is StringBuffer class is synchronized while StringBuilder class is not. And here is […]
CORE API / NOTES</>↗Core API25 Sep 2006
Here we have a small class that convert a string literal into an array, a character array. To do this we can simply use String.toCharArray() method. package org.kodejava.lang; public class StringToArrayExample { public static void main(String[] args) { // We have a string literal that contains the tag line of this blog. String literal = […]
CORE API / NOTES</>↗Core API22 Sep 2006
If you want to display some numbers that is formatted to a certain pattern, either in a Java Swing application or in a JSP file, you can utilize NumberFormat and DecimalFormat class to give you the format that you want. Here is a small example that will show you how to do it. In the […]
CORE API / NOTES</>↗Core API19 Sep 2006
You want to convert a string representing a time into a time object in Java. As we know that Java represents time information in a class java.util.Date, this class keep information for date and time. Now if you have a string of time like 15:30:18, you can use a SimpleDateFormat object to parse the string […]