Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.FileNotFoundException;
import java.io.PrintWriter;

public class Main {
    public static void main(String[] argv) throws FileNotFoundException {
        Throwable t = new Exception("from java2s.com");

        t.printStackTrace(new PrintWriter("file.name"));

    }

}