Small tests such as this can be really helpful.
tucotuco.cs.indiana.edu% ls -l
total 2 -rw-r--r-- 1 dgerman students 423 Apr 6 17:04 Tests.java
tucotuco.cs.indiana.edu% cat Tests.java
import java.util.*; import java.io.*; class Tests { public static void main(String[] args) { try { Properties p = new Properties(); p.put("Java", "Language"); p.put("Pascal", "Another language"); p.put("C", "Yet another language"); p.save(new FileOutputStream("Dictionary"), "Header"); } catch (Exception e) { System.out.println("E: " + e.toString()); } } }
tucotuco.cs.indiana.edu% javac Tests.java
tucotuco.cs.indiana.edu% ls -l
total 6 -rw-r--r-- 1 dgerman students 1113 Apr 6 17:04 Tests.class -rw-r--r-- 1 dgerman students 423 Apr 6 17:04 Tests.java
tucotuco.cs.indiana.edu% java Tests
tucotuco.cs.indiana.edu% ls -l
total 8 -rw-r--r-- 1 dgerman students 99 Apr 6 17:04 Dictionary -rw-r--r-- 1 dgerman students 1113 Apr 6 17:04 Tests.class -rw-r--r-- 1 dgerman students 423 Apr 6 17:04 Tests.java
tucotuco.cs.indiana.edu% cat Dictionary
#Header #Tue Apr 06 18:04:47 EDT 1999 C=Yet another language Pascal=Another language Java=Language
tucotuco.cs.indiana.edu%