Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static String getAttAsString(final String name, final String val) { StringBuffer sb = new StringBuffer(); sb.append(" " + name + "=\"" + val + "\""); return sb.toString(); } }