Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //JPGable.java
- package net.lourencos.phototools;
- import java.util.Date;
- public interface JPGable {
- public Date getDate();
- }
- //Photofile.java
- public class Photofile extends File implements JPGable {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
- //constructor here
- public Photofile(String filepath) {
- super(filepath);
- }
- @Override
- public Date getDate() {
- File file = new File(this.getAbsolutePath());
- Date date = new Date();
- //some working code goes here
- return date;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement