Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    static void appendSubstring(StringBuffer sb, String si, int i0, int i1) {
        if (i0 + 10 < i1) {
            sb.append(si.substring(i0, i1));
        } else {
            for (int i = i0; i < i1; i++) {
                sb.append(si.charAt(i));
            }
        }
    }
}