package com.aaa.info;
import java.util.HashMap; import java.util.Map; public class Test { public static void main(String[] args){ Map<String, String> ftpMap = new HashMap<String, String>(); ftpMap.put("FILE_1", "XXXXXX1.jpg"); ftpMap.put("FILE_2", "XXXXXX2.jpg"); ftpMap.put("FILE_3", "XXXXXX3.jpg"); if (null != ftpMap) { for (Map.Entry<String, String> voTmp : ftpMap.entrySet()) { String fileKey = voTmp.getKey(); String fileInfo = String.valueOf(voTmp.getValue()); System.out.println(fileKey + ":" + fileInfo); } } } }