Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.*;

public class Main {

    public static void main(String[] args) {
        byte c[] = { 70, 71, 72, 73, 74, 75, 76 };

        PrintStream ps = new PrintStream(System.out);

        // write bytes 1-3
        ps.write(c, 1, 3);

        // flush the stream
        ps.flush();

    }
}