Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Front_desk;
- import java.util.*;
- import java.io.*;
- import java.lang.*;
- public class DocTime {
- private Formatter x;
- String Docname, Doctym;
- void openFile () {
- try {
- x = new Formatter("Doc time");
- }
- catch(Exception e) {
- System.out.println("You have an error");
- }
- }
- void addRecord (String Docname, String Doctym) {
- x.format("%s - %s", Docname, Doctym);
- }
- void closefile() {
- x.close();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement