Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Open Source License 

import java.io.IOException;
import java.io.Writer;

public class Main {
    /**
     * Writes the specified number of tabs to the writer.
     * @param w the output writer.
     * @param nrOfTabs the number of tabs. 
     */
    public static void writeTabs(Writer w, int nrOfTabs) throws IOException {
        for (int i = 0; i < nrOfTabs; ++i) {
            w.write("\t");
        }
    }
}