@@ -0,0 +1,539 @@
+/*%0A * This snippet show how to get an environment variable%0A * (e.g. the PATH environment variable here)%0A *%0A * For more information, read %22Le guide de survie Java%22 (chap. 2)%0A * (by Timothy Fisher, ed. CampusPress)%0A *%0A * Usage:%0A * - compile: javac EnvironmentVariables.java%0A * - execute: java EnvironmentVariables%0A */%0A%0Apublic class EnvironmentVariables %7B%0A    public static void main(String %5B%5D args) %7B%0A%0A        // Get the PATH environment variable%0A        String envPath = System.getenv(%22PATH%22);%0A%0A        System.out.println(envPath);%0A    %7D%0A%7D%0A

Add a snippet (java).