Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- public class TestEmployee2
- {
- public static void main(String[] args) throws IOException
- {
- EckEmployee2 e1 = new EckEmployee2(7, "George Costanza");
- EckEmployee2 e2 = createEmployeeFromFile();
- e1.setDepartment("Front Office");
- e1.setPosition("Assistant to the Traveling Secretary");
- e1.setSalary(50000.0);
- e1.setRank(2);
- e2.setNumber();
- e2.setName();
- e2.setDepartment();
- e2.setPosition();
- e2.setSalary();
- e2.setRank();
- e1.displayEmployee();
- e2.displayEmployee();
- }
- EckEmployee2 createEmployeeFromFile(){
- File myFile = new File("employee1.txt");
- Scanner kb = new Scanner(myFile);
- return EckEmployee2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment