Java tutorial
import java.io.PrintWriter; import java.util.Properties; public class Main { public static void main(String[] args) throws Exception { Properties prop = new Properties(); PrintWriter writer = new PrintWriter(System.out); prop.put("Chapter Count", "200"); prop.put("Tutorial Count", "150"); prop.put("tutorial", "java2s.com"); prop.put("Runnable", "true"); // print the list with a PrintWriter object prop.list(writer); // flush the stream writer.flush(); } }