Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!