Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.BufferedInputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.prefs.Preferences;

public class Main {
    public static void main(String[] argv) throws Exception {
        // Create an input stream on a file
        InputStream is = new BufferedInputStream(new FileInputStream("output.xml"));

        // Import preference data

        Preferences.importPreferences(is);
    }
}