Class FileModifier
java.lang.Object
FileModifier
public class FileModifier
- extends Object
Class to demonstrate using a program to modify another program
- Author:
- Barb Ericson
Method Summary |
static void |
main(String[] args)
|
void |
modifyFile(String fileName,
String textToChange,
String changedText)
Method to modfiy the first string in a method to
be the passed changed text |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileModifier
public FileModifier()
modifyFile
public void modifyFile(String fileName,
String textToChange,
String changedText)
- Method to modfiy the first string in a method to
be the passed changed text
- Parameters:
fileName
- the file name for the class to modifytextToChange
- the text to changechangedText
- the new text to use for the text to
change
main
public static void main(String[] args)