Java tutorial
//package com.java2s; import android.text.TextUtils; import java.util.List; import java.util.Map; public class Main { public static String formetPropsAsTableKey(Map<String, List<String>> selectProps, List<String> keys_order) { String props = ""; for (String key : keys_order) { if (selectProps.containsKey(key)) { props += ":" + selectProps.get(key).get(0); } } if (!TextUtils.isEmpty(props)) props = props.substring(1); return props; } }