Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

import java.util.Iterator;
import java.util.Map;

public class Main {
    public static void main(String args[]) {
        System.out.println("PATH = " + System.getenv("PATH"));

        Map<String, String> env = System.getenv();
        for (Iterator<Map.Entry<String, String>> it = env.entrySet().iterator(); it.hasNext();) {
            Map.Entry<String, String> entry = it.next();
            entry.setValue("None");
        }
    }
}