Tag Archives: Import

01Jul/13

How to create XML file in Java – (DOM Parser)

DOM provides many handy classes to create XML file easily. Firstly, you have to create a Document with DocumentBuilder class, define all the XML content – node, attribute with Element class. InRead More…

25Jun/13

How to use Map in Java

import java.util.HashMap; import java.util.Iterator; import java.util.Map; public class LoopMap { public static void main(String[] args) { // initial a Map Map<String, String> map = new HashMap<String, String>(); map.put(“1”, “Jan”); map.put(“2”, “Feb”); map.put(“3”,Read More…

22May/13

How to Load CSV file into Database

Loading CSV file into Database can be cumbersome task if your Database provider does not offer an out of box feature for this. Most of the time you’ll spend up in creatingRead More…

15May/13

A simple ListView, extends ListActivity

It’s the simplest form of ListView, extends ListActivity. The list is displayed as a single line of plain text, using the simple Android built-in layout “android.R.layout.simple_list_item_1”. package com.exercise.AndroidList; import android.app.ListActivity; import android.os.Bundle;Read More…