how to use this to get an out put from a existing java file to test it