@@ -0,0 +1,448 @@
+import java.io.*;%0Aimport java.lang.*;%0A%0Apublic class ActionLog%7B%0A%0A   public static void logAction(String action) throws IOException%7B%0A      try%7B%0A         FileWriter fstream = new FileWriter(%22log.txt%22, true);%0A         BufferedWriter log = new BufferedWriter(fstream);%0A         log.write(action);%0A         log.newLine();%0A         log.close();%0A      %7D%0A      catch (Exception e)%7B%0A         System.err.println(%22Error: %22 + e.getMessage());%0A      %7D%0A   %7D%0A%0A%0A%0A%7D%0A

Create ActionLog.java