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 arrayToString(String[] array) {
        StringBuffer strBuffer = new StringBuffer();
        for (int i = 0; i < array.length; i++) {
            if (i == 0) {
                strBuffer.append(array[i]);
            } else {
                strBuffer.append(";" + array[i]);
            }
        }
        return strBuffer.toString();
    }
}