Your class is called "CleanedUp" but your main method tries to create a "homeworkJava" object. Even after fixing that and removing the hard-coded paths to input files in your home directory, the program crashes with a null pointer exception. you need to provide the input files and you should really make them read in from a directory relative to the program execution directory.