Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.nio.file.FileSystem;
import java.nio.file.FileSystems;
import java.util.Set;

public class Main {

    public static void main(String[] args) {
        //list all the supported views in the current file system
        FileSystem fs = FileSystems.getDefault();
        Set<String> views = fs.supportedFileAttributeViews();

        for (String view : views) {
            System.out.println(view);
        }

    }
}