Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static final String GT = ">"; public static final String LT_BACKSLASH = "</"; public static StringBuffer addEndTag(StringBuffer buf, String tagname) { buf.append(LT_BACKSLASH).append(tagname).append(GT); return buf; } }