Advertisement
Guest User

Untitled

a guest
Feb 20th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1.  
  2. public class Staff
  3. {
  4. private String _id;
  5. private String _name;
  6. private String _dept;
  7. private String [] col;
  8.  
  9. public Staff(String data){
  10. col = data.split(",");
  11. _id = col[0];
  12. _name = col[1];
  13. _dept = col[2];
  14. }
  15.  
  16. public String getID()
  17. { return _id;}
  18. public String getName()
  19. { return _name;}
  20. public String getDept()
  21. { return _dept;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement