So I've done this:
import java.io.*;
public abstract class FileWriter extends Writer{
FileWriter() {
BufferedWriter writer = new BufferedWriter(this);
}
}
But now I can't use the constructor because the class is abstract! I don't want to change the methods so I can't override them. help?
Main class:
public class Begin {
/**
* @param args
*/
public static void main(String[] args) {
new GUI(); new FileReader(); new FileWriter();
}
}
EDIT:
OK so I overrode[?] them and now I need to know how to delete characters (other than reading the whole file, deleting it, and making a new file without the character(s).
EDIT: AHH
I can't access writer and reader from my main class! (the ones created in the constructor!
OH WAIT never mind couldn't I just make somepublic methods in my other classes? Wait a minute I'm confused. :confused: