You are using the wrong class
see
class  ProgramSix 
vs
Program6 program6 = new Program6();
12
solved Java reading data from a .txt file and outputting it to an output.txt file [closed]
 
You are using the wrong class
see
class  ProgramSix 
vs
Program6 program6 = new Program6();
12
solved Java reading data from a .txt file and outputting it to an output.txt file [closed]