Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static final char TAB = '\t';

    public static String stringArrayToString(String[] array) {
        StringBuffer result = new StringBuffer();
        for (int i = 0; i < array.length - 1; i++) {
            result.append(array[i]).append(TAB);
        }
        result.append(array.length - 1);
        return result.toString();
    }
}