package com.k13n.lt_codes;

/**
 * Hello world!
 *
 */
public class App
{
    public static void main( String[] args )
    {
        System.out.println( "Hello World!" );
    }
}

@@ -25,34 +25,29 @@
 s;%0A%0A
-/**%0A * Hello world!%0A *%0A */
+import java.io.File;%0A
 %0Apub
@@ -63,112 +63,634 @@
  App
-%0A
+ 
 %7B%0A  
-  public static void main( String%5B%5D args )%0A    %7B%0A        System.out.println( %22Hello World!%22 );%0A    %7D
+private final File file;%0A%0A  public App(String%5B%5D args) %7B%0A    String filename = parseFilename(args);%0A    file = ensureFileExists(filename);%0A  %7D%0A%0A  private String parseFilename(String%5B%5D args) %7B%0A    if (args.length == 0)%0A      throw new IllegalArgumentException(%22No file provided%22);%0A    return args%5B0%5D;%0A  %7D%0A%0A  private File ensureFileExists(String filename) %7B%0A    File file = new File(filename);%0A    if (!file.exists())%0A      throw new IllegalArgumentException(%22File does not exist%22);%0A    return file;%0A  %7D%0A%0A  public void execute() %7B%0A    // FIXME%0A  %7D%0A%0A  public static void main(String%5B%5D args) %7B%0A    new App(args).execute();%0A  %7D%0A
 %0A%7D%0A

Create skeleton of the App class