Answered step by step
Verified Expert Solution
Question
1 Approved Answer
JAVA OOP Bible Overview Design a set of OOP classes to model a bible app. Details Bible ArrayList books String translation Reference randomVerse() Return a
JAVA
OOP Bible
Overview
Design a set of OOP classes to model a bible app.
Details
Bible
- ArrayList
books - String translation
- Reference randomVerse()
- Return a random verse from a random chapter of a random book.
- ArrayList
search(String s) - An ArrayList of all references where string s is included.
Book
- ArrayList
chapters - String name
- BookType type
- String author
- TestatmentType testament
BookType - enum
- Law, History, Poetry, MajorProphets, MinorProphets, Gospel, PaulineEpistles, GeneralEpistles, Prophecy.
TestamentType - enum
- OldTestament, NewTestament
Chapter
- ArrayList
verses - int number
- String title
- toString()
- Print the chapter number, a new line, and then all the verses toString().
Verse
- String text
- int number
- boolean isHighlighted
- highlight()
- unhighlight()
- comment(String comment)
- ArrayList
comments - toString()
- verse number, then a space, then the text of the verse.
Reference
- Book book
- Chapter chapter
- Verse verse
- String toString()
- "Genesis 3:24"
5 Classes : Main.java, Book.java, Chapter.java, Verse.java, and Reference.java
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started