Update FinalMain.java

Passing BufferedReader as a parameter