Homework 6

Due date : See COL

Goals : Command line argument/ Text File I/O / Exception handling /String

Implement a Java application that takes any Java source code (text) file (say Any.java ) as input , and writes it back to a text file (say : Any.java.txt) with all its comments being removed. Remember there are two type of comments in Java :

  1. comment line that starts with //
  2. comment block that starts with /* and ends with */

Turn in Instructions