yoursyun

StringBuilder 문자열 합치기 본문

environment/java

StringBuilder 문자열 합치기

yoursyun 2024. 7. 16. 17:31
// procedure processed comma separate
StringBuilder cd_items = new StringBuilder();
StringBuilder qtys = new StringBuilder();

for( Map.Entry<String, Object> entry : ((Map<String, Object>)formData.get("orderL")).entrySet() ){
   cd_items.append(",").append(entry.getKey());
   qtys.append(",").append(entry.getValue().toString());
}
반응형