Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { private static final void appendAttribute(StringBuilder sb, String name, Object value) { //i.e. ' vendor="sap.com"' sb.append(" ").append(name).append("=\"").append(value).append("\""); } }