Create ending tag - Android XML

Android examples for XML:XML Tag

Description

Create ending tag

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        String tag = "java2s.com";
        System.out.println(detag(tag));
    }/*from w  w w .j  a  va  2 s.  c o m*/

    public static String detag(String tag) {
        return "</" + tag + ">\n";
    }
}

Related Tutorials