java program question- when I type letter then the txt file1 can read to txt file2 and the output file2 answer. For example, btw in file1 and By the way in txt file2. When I type btw use dialog box and output will show By the way in the console but words come from txt file2.