Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- public class Category {
- ArrayList<Category> childs;
- private String name;
- public Category(String name) {
- this.name = name;
- childs = new ArrayList<Category>(0);
- }
- public Category(String name, ArrayList<Category> childs) {
- this.name = name;
- this.childs = childs;
- }
- public String getName() {
- return name;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement