Java tutorial
//package com.java2s; //License from project: Open Source License import java.util.HashMap; import java.util.List; import java.util.Map; public class Main { public static Map<String, Object> findFirstVisibleElement(List<HashMap<String, Object>> elements) { //TODO: Should do something more intelligent return (Map<String, Object>) elements.get(0); } }