Skip to content

Instantly share code, notes, and snippets.

@morganwilde
Last active August 29, 2015 14:15
Show Gist options
  • Save morganwilde/903b921d804b8021ec08 to your computer and use it in GitHub Desktop.
Save morganwilde/903b921d804b8021ec08 to your computer and use it in GitHub Desktop.
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