@@ -0,0 +1,670 @@
+/*%0A * This snippet uses some useful cross-platform properties.%0A *%0A * Usage:%0A * - compile: javac CrossPlatform.java%0A * - execute: java CrossPlatform%0A */%0A%0Apublic class CrossPlatform %7B%0A%0A%09/**%0A%09 * @param args%0A%09 */%0A%09public static void main(String%5B%5D args) %7B%0A%09%09%0A%09%09// Get the file separator character%0A%09%09System.out.println( System.getProperty(%22file.separator%22) );%0A%09%09%0A%09%09// Get the line separator character(s)%0A%09%09System.out.println( System.getProperty(%22line.separator%22) );%0A%09%09%0A%09%09// Get the current user's name%0A%09%09System.out.println( System.getProperty(%22user.name%22) );%0A%09%09%0A%09%09// Get the current user's home (directory) path%0A%09%09System.out.println( System.getProperty(%22user.home%22) );%0A%0A%09%7D%0A%0A%7D%0A

Add some snippets (Java).