Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String file = "Stubs.txt";
- FileWriter fw = new FileWriter(file);
- BufferedWriter bw = new BufferedWriter(fw);
- PrintWriter outFile = new PrintWriter(bw);
- for (HospitalEmployee employee : employees)
- {
- employee.issuePayCheck();
- outFile.print(employee);
- outFile.println();
- outFile.println();
- }
- outFile.close();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement