String () { StringBuilder sb = new StringBuilder("<option"); for (Map.Entry<String, String> entry : myMap.entrySet()) { sb.append(' ').append(entry.getKey()).append('='); sb.append('"').append(entry.getValue()).append('"'); } return sb.append("/>").toString(); }