All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spoon.examples.pathanalysis.src.Main Maven / Gradle / Ivy

The newest version!
package spoon.examples.pathanalysis.src;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class Main {

	public static void main(String[] args) {
		try {
			FileWriter writer = new FileWriter("test");
			writer.append("test");
			writer.close();
			if (args[0].equals("something")) {
				close(writer);
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	private static void close(Writer writer) throws IOException {
		writer.close();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy