Java tutorial
//package com.java2s; import java.io.PrintWriter; public class Main { /** * Generates the end of an XML tag </fieldName> * * @param fieldName * @param pw */ static public void writeXMLEnd(String fieldName, PrintWriter pw) { pw.print("</"); pw.print(fieldName); pw.println('>'); } }