Advertisement
Guest User

Untitled

a guest
Feb 23rd, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. //JPGable.java
  2. package net.lourencos.phototools;
  3.  
  4. import java.util.Date;
  5.  
  6. public interface JPGable {
  7.  
  8. public Date getDate();
  9.  
  10. }
  11.  
  12. //Photofile.java
  13. public class Photofile extends File implements JPGable {
  14.  
  15. /**
  16. *
  17. */
  18. private static final long serialVersionUID = 1L;
  19.  
  20. //constructor here
  21. public Photofile(String filepath) {
  22. super(filepath);
  23. }
  24.  
  25. @Override
  26. public Date getDate() {
  27. File file = new File(this.getAbsolutePath());
  28. Date date = new Date();
  29. //some working code goes here
  30. return date;
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement