This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
jonas, Pass the file name you want to read as Input parameter to main pgm like > java pgmname "input file". In your main function read it using args into a string say strFile, where args is the main() function argument. In BufferedReader constructor, you say - BufferedReader br = new BufferedReader(strFile); Hope this helps you out.