Create starting tag - Android XML

Android examples for XML:XML Tag

Description

Create starting tag

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        String tag = "java2s.com";
        System.out.println(entag(tag));
    }//  w  ww.jav a 2s.c  om

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

Related Tutorials