Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.io.FilePermission;
import java.io.IOException;

public class Main {
    public static void main(String[] args) throws IOException {
        FilePermission fp = new FilePermission("C://test.txt", "read");

        // the canonical string representation of the action
        String s = fp.getActions();

        System.out.print("Action: " + s);

    }
}