Java tutorial
//package com.java2s; //License from project: Apache License public class Main { public static final String TAG_START_LOW = "<"; public static final String TAG_START_SLASH_SUP = "/>"; /** * Build a tag <code><tagName/></code>. * * @param pTagName * name of the tag. * @return requested tag. */ public static String startEndTag(String pTagName) { StringBuilder tag = new StringBuilder(); tag.append(TAG_START_LOW); tag.append(pTagName); tag.append(TAG_START_SLASH_SUP); return tag.toString(); } }