Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String toCsv(String[] array) {
        StringBuffer result = new StringBuffer();
        for (int s = 0; s < array.length; s++) {
            if (s > 0)
                result.append(", ");
            result.append(array[s]);
        }
        return result.toString();
    }
}