Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.OutputStream;

public class Main {

    public static void main(String[] args) {
        OutputStream fileOutputStream;
        try {
            fileOutputStream = new FileOutputStream("c:/a.txy");
            Runtime runTime = Runtime.getRuntime();
            runTime.getLocalizedOutputStream(fileOutputStream);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }

    }
}