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 intArrayToString(int[] ia) {
        if (ia == null) {
            return "";
        }
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < ia.length; i++) {
            sb.append(';');
            sb.append(ia[i]);
        }
        if (ia.length > 0) {
            sb.deleteCharAt(0);
        }
        return sb.toString();
    }
}