What data structures are useful for storing comic information like chapters and pages?

Question

Grade: Education Subject: Comic
What data structures are useful for storing comic information like chapters and pages?
Asked by:
86 Viewed 86 Answers

Answer (86)

Best Answer
(389)
A combination of data structures is often best. You could use a `List` or `ArrayList` to store a collection of comic chapters. Each chapter could be represented as a `HashMap` or custom class mapping chapter ID to a list of pages. Each page would then be a `Bitmap` or a reference to a `Bitmap`, and you might need a separate structure to store metadata like page number and panel layout.