Package test

Class BooksDirectoryReader

java.lang.Object
test.BooksDirectoryReader

public class BooksDirectoryReader extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    The BooksDirectoryReader constructor reads all the books in a directory and sets an array of strings containing the file names of each book.
  • Method Summary

    Modifier and Type
    Method
    Description
    The getBooks function returns an array of strings containing the paths of all books in the library.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BooksDirectoryReader

      public BooksDirectoryReader()
      The BooksDirectoryReader constructor reads all the books in a directory and sets an array of strings containing the file names of each book.
  • Method Details

    • getBooks

      public String[] getBooks()
      The getBooks function returns an array of strings containing the paths of all books in the library.
      Returns:
      An array of String