Tag Archives: Dynamic array

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…

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…