java.lang.ArrayIndexOutOfBoundsException: -1

Coderanch | Jordan King | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    book and library class

    Coderanch | 1 year ago | Jordan King
    java.lang.ArrayIndexOutOfBoundsException: -1

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at libraryandbook.Library.addBook()
    2. libraryandbook
      Library.main
      1. libraryandbook.Library.addBook(Library.java:19)
      2. libraryandbook.Library.main(Library.java:27)
      2 frames