2 public static final int N=1000000;
3 public static final String TEMPLATE="I am simply a space filler";
5 public static void main(String args[]) {
8 System.out.println("Creating lots of Strings ...");
10 for (int i=0; i<N; i++) {
11 s = new String(TEMPLATE);
14 System.out.println("The String was: \'" + s + "\'");
16 System.out.println("done.");