Java tutorial
//package com.java2s; public class Main { public static String FormatElement(String name, String value) { return String.format("<%1$s>%2$s</%1$s>\n", name, value); } }