遍历map,将key值放入list中


                 for (Iterator<String> iterator = gatewaynumber.keySet().iterator(); iterator.hasNext();) {
                        String key = (String) iterator.next();
                         if (key.indexOf(partOfBankCode.toLowerCase()) >= 0) {
                                list.add(key.toUpperCase());
                        }
                }
        

你可能感兴趣的:(职场,map,key,休闲)