Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.FileInputStream;
import java.io.IOException;
import java.io.SequenceInputStream;

public class Main {
    public static void main(String args[]) throws IOException {
        SequenceInputStream inStream;
        FileInputStream f1 = new FileInputStream("ByteArrayIOApp.java");
        FileInputStream f2 = new FileInputStream("FileIOApp.java");
        inStream = new SequenceInputStream(f1, f2);

        byte[] arrayBytes = new byte[100];
        int c = inStream.read(arrayBytes, 10, 10);

        inStream.close();
        f1.close();
        f2.close();
    }
}