make XML Value Indent - Android XML

Android examples for XML:XML String

Description

make XML Value Indent

Demo Code


//package com.java2s;

public class Main {
    public static void main(String[] argv) throws Exception {
        int count = 2;
        System.out.println(makeIndent(count));
    }/*from   ww w  .ja v a 2s . c o m*/

    public static String makeIndent(int count) {
        String r = "";
        for (int i = 0; i < count; i++)
            r += '\t';
        return r;
    }
}

Related Tutorials