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