Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.ArrayList; import java.util.HashMap; public class Main { public static ArrayList<HashMap<String, Boolean>> getTodos() { ArrayList<HashMap<String, Boolean>> result = new ArrayList<HashMap<String, Boolean>>(); HashMap<String, Boolean> todo = new HashMap<String, Boolean>(); todo.put("TODO", false); result.add(todo); HashMap<String, Boolean> done = new HashMap<String, Boolean>(); todo.put("DONE", true); result.add(done); return result; } }