java – Print stream does not format all values ​​to 2 decimal places, but only some of them for text file

I am asked to make a bank account java program. I have made it and the values ​​in the regular print works, but when I use print stream for the text file, half of the values ​​have been changed, but the other half have not been changed to two decimal places. The current code is … Read more