Last active
August 29, 2015 14:15
-
-
Save morganwilde/903b921d804b8021ec08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GintvileFile { | |
private String name; | |
private String contents; | |
public GintvileFile() { | |
this.contents = ""; | |
} | |
public String getContents() { | |
return contents; | |
} | |
} | |
public class FileTxt extends GintvileFile { | |
public FileTxt() { | |
this.contents = "contents"; // <-- contents that you read from that file | |
} | |
} | |
public class GintvileFolder { | |
private int filesContained; | |
private int foldersContained; | |
public GintvileFolder() { | |
this.filesContained = 0; // <-- how many files in this folder, so that you can iterate later | |
this.foldersContained = 0; // <-- how many folders... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment