Java tutorial
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); public class Main { /** * Wraps an xml tag with '</' and '>'. */ public static String xmlWrapEnd(String str) { StringBuilder buf = new StringBuilder(); buf.append("</"); buf.append(str); buf.append(">\n"); return buf.toString(); } }