Java tutorial
//package com.java2s; import java.util.HashMap; public class Main { public static HashMap<String, String> menuImages = new HashMap<String, String>(); public static String getMenuSectionImageUri(String menuItem) { menuItem = menuItem.toLowerCase(); menuItem = menuItem.replace(" ", "_"); if (menuImages != null && !menuImages.isEmpty() && menuImages.containsKey(menuItem)) { return menuImages.get(menuItem); } return ""; } }