Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static String join(int length) {
        StringBuffer sb = new StringBuffer(1024);
        for (int i = 0; i < length; i++) {
            sb.append("?,");
        }
        if (sb.charAt(sb.length() - 1) == ',') {
            sb.deleteCharAt(sb.length() - 1);
        }
        return sb.toString();
    }
}